qemu/target/nios2
Richard Henderson 87d7bfdba1 linux-user/nios2: Properly emulate EXCP_TRAP
The real kernel has to load the instruction and extract
the imm5 field; for qemu, modify the translator to do this.

The use of R_AT for this in cpu_loop was a bug.  Handle
the other trap numbers as per the kernel's trap_table.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20211221025012.1057923-2-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
2022-01-06 11:40:52 +01:00
..
cpu-param.h tcg: Split out target/arch/cpu-param.h 2019-06-10 07:03:34 -07:00
cpu.c target/nios2: Implement nios2_cpu_record_sigsegv 2021-11-02 07:00:52 -04:00
cpu.h linux-user/nios2: Properly emulate EXCP_TRAP 2022-01-06 11:40:52 +01:00
helper.c target/nios2: Implement nios2_cpu_record_sigsegv 2021-11-02 07:00:52 -04:00
helper.h target/nios2: Mark raise_exception() as noreturn 2021-07-30 08:23:12 -10:00
Kconfig meson: Introduce target-specific Kconfig 2021-07-09 18:21:34 +02:00
meson.build meson: target 2020-08-21 06:30:35 -04:00
mmu.c Include qemu-common.h exactly where needed 2019-06-12 13:20:20 +02:00
mmu.h Clean up header guards that don't match their file name 2019-05-13 08:58:55 +02:00
monitor.c hmp: Pass monitor to mon_get_cpu_env() 2020-11-13 12:45:51 +00:00
nios2-semi.c linux-user: Don't include gdbstub.h in qemu.h 2021-09-13 20:35:45 +02:00
op_helper.c target/nios2: Move nios2_check_interrupts() into target/nios2 2020-12-15 12:04:30 +00:00
translate.c linux-user/nios2: Properly emulate EXCP_TRAP 2022-01-06 11:40:52 +01:00