Browse Source

ports/qemu: Fix inline-if in `lookup_cause`.

Signed-off-by: Plaque FCC <plaque-fcc@github>
pull/16040/head
Plaque FCC 3 weeks ago
parent
commit
15125bb816
  1. 2
      ports/qemu/mcu/rv32/interrupts.c

2
ports/qemu/mcu/rv32/interrupts.c

@ -144,7 +144,7 @@ const char *lookup_cause(uint32_t mcause) {
case 11:
return exception_causes[6];
default:
return (mcause >= 16) ?
return ((mcause & 0x7FFFFFFF) >= 16) ?
exception_causes[7] :
exception_causes[0];
}

Loading…
Cancel
Save