Fix overly long event name

This commit is contained in:
Toby Jaffey 2025-12-08 13:04:05 +00:00
parent 86f93be100
commit c691c3ebdf
9 changed files with 10 additions and 10 deletions

View file

@ -68,7 +68,7 @@ void loop(void) {
case UVM32_EVT_END:
isrunning = false;
break;
case UVM32_EVT_UVM32_SYSCALL: // vm has paused to handle UVM32_SYSCALL
case UVM32_EVT_SYSCALL: // vm has paused to handle UVM32_SYSCALL
switch((f_code_t)evt.data.syscall.code) {
case F_PRINTD:
Serial.println(evt.data.syscall.val.u32);

View file

@ -158,7 +158,7 @@ uint32_t uvm32_run(uvm32_state_t *vmst, uvm32_evt_t *evt, uint32_t instr_meter)
vmst->ioevt.data.syscall.val.u32p = &vmst->core->regs[11];
break;
}
vmst->ioevt.typ = UVM32_EVT_UVM32_SYSCALL;
vmst->ioevt.typ = UVM32_EVT_SYSCALL;
vmst->ioevt.data.syscall.code = vmst->mappings[i].code;
vmst->ioevt.data.syscall.typ = vmst->mappings[i].typ;
setStatus(vmst, UVM32_STATUS_PAUSED);

View file

@ -23,7 +23,7 @@ typedef enum {
typedef enum {
UVM32_EVT_ERR,
UVM32_EVT_UVM32_SYSCALL,
UVM32_EVT_SYSCALL,
UVM32_EVT_YIELD,
UVM32_EVT_END,
} uvm32_evt_typ_t;