aboutsummaryrefslogtreecommitdiff
path: root/target/nios2
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2021-12-20 18:50:09 -0800
committerLaurent Vivier <laurent@vivier.eu>2022-01-06 11:40:52 +0100
commitf5ef0e518d0331920cef0fb6f6c1141695ffab7b (patch)
treefe77a0674923ff68807f5a816753bd4658d522ea /target/nios2
parent66346faf3200a0607a5498684e14e84c718dc233 (diff)
downloadqemu-f5ef0e518d0331920cef0fb6f6c1141695ffab7b.zip
qemu-f5ef0e518d0331920cef0fb6f6c1141695ffab7b.tar.gz
qemu-f5ef0e518d0331920cef0fb6f6c1141695ffab7b.tar.bz2
linux-user/nios2: Map a real kuser page
The first word of page1 is data, so the whole thing can't be implemented with emulation of addresses. Use init_guest_commpage for the allocation. Hijack trap number 16 to implement cmpxchg. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20211221025012.1057923-5-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'target/nios2')
-rw-r--r--target/nios2/translate.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/target/nios2/translate.c b/target/nios2/translate.c
index a759877..f9abc2f 100644
--- a/target/nios2/translate.c
+++ b/target/nios2/translate.c
@@ -795,15 +795,6 @@ static void nios2_tr_translate_insn(DisasContextBase *dcbase, CPUState *cs)
dc->base.pc_next = pc + 4;
/* Decode an instruction */
-
-#if defined(CONFIG_USER_ONLY)
- /* FIXME: Is this needed ? */
- if (pc >= 0x1000 && pc < 0x2000) {
- t_gen_helper_raise_exception(dc, 0xaa);
- return;
- }
-#endif
-
code = cpu_ldl_code(env, pc);
op = get_opcode(code);