soc: riscv: remove usage of SOC_ERET

All SOC_ERET definitions expand to the mret instruction (used to return
from a trap: exception or interruption). The 'eret' instruction existed
in previous RISC-V privileged specs, but it doesn't seem to be used in
Zephyr (ref. RISC-V Privileged Architectures 3.2.2).

Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
Gerard Marull-Paretas 2022-08-03 12:51:34 +02:00 committed by Carles Cufí
commit 736a1a9113
6 changed files with 3 additions and 24 deletions

View file

@ -603,5 +603,4 @@ no_fp: /* make sure this is reflected in the restored mstatus */
addi sp, sp, __z_arch_esf_t_SIZEOF
#endif
/* Call SOC_ERET to exit ISR */
SOC_ERET
mret