diff options
| author | Plaque FCC <plaque-fcc@github> | 2024-10-18 04:46:52 +0300 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2024-10-22 14:52:01 +1100 |
| commit | 324871f3803a7b2f9be264ee998e46ac0a7c4698 (patch) | |
| tree | f9ca1e0b3c9598bce6a7bce2d59ab4cf3788e55e | |
| parent | 8fef67bda577118426995fee77a601d1f55602eb (diff) | |
qemu/mcu/rv32: Fix test of mcause value in lookup_cause.
Signed-off-by: Plaque FCC <plaque-fcc@github>
| -rw-r--r-- | ports/qemu/mcu/rv32/interrupts.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/qemu/mcu/rv32/interrupts.c b/ports/qemu/mcu/rv32/interrupts.c index ccb4644f9..804cebcd7 100644 --- a/ports/qemu/mcu/rv32/interrupts.c +++ b/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]; } |
