diff options
| author | Richard Henderson | 2021-12-21 03:50:09 +0100 |
|---|---|---|
| committer | Laurent Vivier | 2022-01-06 11:40:52 +0100 |
| commit | f5ef0e518d0331920cef0fb6f6c1141695ffab7b (patch) | |
| tree | fe77a0674923ff68807f5a816753bd4658d522ea /target | |
| parent | linux-user/elfload: Rename ARM_COMMPAGE to HI_COMMPAGE (diff) | |
| download | qemu-f5ef0e518d0331920cef0fb6f6c1141695ffab7b.tar.gz qemu-f5ef0e518d0331920cef0fb6f6c1141695ffab7b.tar.xz qemu-f5ef0e518d0331920cef0fb6f6c1141695ffab7b.zip | |
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')
| -rw-r--r-- | target/nios2/translate.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/target/nios2/translate.c b/target/nios2/translate.c index a759877519..f9abc2fdd2 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); |
