Reported by Quanwen Du:
When RISCV32 is excuting compressed instruction which is 2bytes per instruction, and trigger an exception(not an ecall exception), the following code seems NOT to consider such cases in {arch\riscv32\core\isr.S}
lw t0, __NANO_ESF_mepc_OFFSET(sp)
addi t0, t0, 4
sw t0, __NANO_ESF_mepc_OFFSET(sp)
The code {addi t0, t0, 4} does NOT take compressed instruction into consideration. if the exception instruction is compressed instruction, shall be {addi t0, t0, 2}
(Imported from Jira ZEP-2393)