diff options
| author | Richard Henderson | 2021-12-21 03:50:06 +0100 |
|---|---|---|
| committer | Laurent Vivier | 2022-01-06 11:40:52 +0100 |
| commit | 87d7bfdba1d4a963e9a89052c38a32327fa25473 (patch) | |
| tree | 66821d335d044d60874d21e5bb09dd4054b275d2 /linux-user/elfload.c | |
| parent | linux-user/syscall.c: fix missed flag for shared memory in open_self_maps (diff) | |
| download | qemu-87d7bfdba1d4a963e9a89052c38a32327fa25473.tar.gz qemu-87d7bfdba1d4a963e9a89052c38a32327fa25473.tar.xz qemu-87d7bfdba1d4a963e9a89052c38a32327fa25473.zip | |
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>
Diffstat (limited to 'linux-user/elfload.c')
0 files changed, 0 insertions, 0 deletions
