Collapse nOS-V API switch
This commit is contained in:
parent
98db4a2fe0
commit
29b7662e41
43
emu_nosv.c
43
emu_nosv.c
@ -362,38 +362,17 @@ pre_api(struct ovni_emu *emu)
|
|||||||
|
|
||||||
switch(emu->cur_ev->header.value)
|
switch(emu->cur_ev->header.value)
|
||||||
{
|
{
|
||||||
case 's':
|
case 's': chan_push(chan_th, ST_NOSV_API_SUBMIT); break;
|
||||||
chan_push(chan_th, ST_NOSV_API_SUBMIT);
|
case 'S': chan_pop (chan_th, ST_NOSV_API_SUBMIT); break;
|
||||||
break;
|
case 'p': chan_push(chan_th, ST_NOSV_API_PAUSE); break;
|
||||||
case 'S':
|
case 'P': chan_pop (chan_th, ST_NOSV_API_PAUSE); break;
|
||||||
chan_pop(chan_th, ST_NOSV_API_SUBMIT);
|
case 'y': chan_push(chan_th, ST_NOSV_API_YIELD); break;
|
||||||
break;
|
case 'Y': chan_pop (chan_th, ST_NOSV_API_YIELD); break;
|
||||||
case 'p':
|
case 'w': chan_push(chan_th, ST_NOSV_API_WAITFOR); break;
|
||||||
chan_push(chan_th, ST_NOSV_API_PAUSE);
|
case 'W': chan_pop (chan_th, ST_NOSV_API_WAITFOR); break;
|
||||||
break;
|
case 'c': chan_push(chan_th, ST_NOSV_API_SCHEDPOINT); break;
|
||||||
case 'P':
|
case 'C': chan_pop (chan_th, ST_NOSV_API_SCHEDPOINT); break;
|
||||||
chan_pop(chan_th, ST_NOSV_API_PAUSE);
|
default: break;
|
||||||
break;
|
|
||||||
case 'y':
|
|
||||||
chan_push(chan_th, ST_NOSV_API_YIELD);
|
|
||||||
break;
|
|
||||||
case 'Y':
|
|
||||||
chan_pop(chan_th, ST_NOSV_API_YIELD);
|
|
||||||
break;
|
|
||||||
case 'w':
|
|
||||||
chan_push(chan_th, ST_NOSV_API_WAITFOR);
|
|
||||||
break;
|
|
||||||
case 'W':
|
|
||||||
chan_pop(chan_th, ST_NOSV_API_WAITFOR);
|
|
||||||
break;
|
|
||||||
case 'c':
|
|
||||||
chan_push(chan_th, ST_NOSV_API_SCHEDPOINT);
|
|
||||||
break;
|
|
||||||
case 'C':
|
|
||||||
chan_pop(chan_th, ST_NOSV_API_SCHEDPOINT);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user