From 35de33e0f9bd3c5535d9552d574ba25302a15989 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Date: Thu, 16 Mar 2023 16:43:05 +0100 Subject: [PATCH] Add support for Nanos6 progress events --- src/emu/nanos6/event.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/emu/nanos6/event.c b/src/emu/nanos6/event.c index 8a43db1..aeb8e55 100644 --- a/src/emu/nanos6/event.c +++ b/src/emu/nanos6/event.c @@ -36,12 +36,10 @@ static const int ss_table[256][256][3] = { ['r'] = { CHSS, PUSH, ST_RESUME }, ['R'] = { CHSS, POP, ST_RESUME }, ['*'] = { CHSS, IGN, -1 }, - ['i'] = { CH_IDLE, PUSH, ST_WORKER_IDLE }, - ['I'] = { CH_IDLE, POP, ST_WORKER_IDLE }, }, - ['P'] = { /* TODO: Ignore progress events for now */ - ['r'] = { CHSS, IGN, -1 }, - ['p'] = { CHSS, IGN, -1 }, + ['P'] = { + ['r'] = { CH_IDLE, PUSH, ST_WORKER_IDLE }, + ['p'] = { CH_IDLE, POP, ST_WORKER_IDLE }, }, ['C'] = { ['['] = { CHSS, PUSH, ST_TASK_CREATING },