diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2021-09-14 16:56:32 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2021-11-02 07:00:52 -0400 |
commit | 028772c45cfdd21870f0f9056d270f03bf990fae (patch) | |
tree | 3bc3d69588e00bbf9b9fa1891e1840cf563e44bf /target/m68k/helper.c | |
parent | f74bd157c62f5c064418d038f9003c9c4b3dad0e (diff) | |
download | qemu-028772c45cfdd21870f0f9056d270f03bf990fae.zip qemu-028772c45cfdd21870f0f9056d270f03bf990fae.tar.gz qemu-028772c45cfdd21870f0f9056d270f03bf990fae.tar.bz2 |
target/m68k: Make m68k_cpu_tlb_fill sysemu only
The fallback code in cpu_loop_exit_sigsegv is sufficient
for m68k linux-user.
Remove the code from cpu_loop that handled EXCP_ACCESS.
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/m68k/helper.c')
-rw-r--r-- | target/m68k/helper.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/target/m68k/helper.c b/target/m68k/helper.c index 137a3e1..5728e48 100644 --- a/target/m68k/helper.c +++ b/target/m68k/helper.c @@ -978,16 +978,12 @@ void m68k_set_irq_level(M68kCPU *cpu, int level, uint8_t vector) } } -#endif - bool m68k_cpu_tlb_fill(CPUState *cs, vaddr address, int size, MMUAccessType qemu_access_type, int mmu_idx, bool probe, uintptr_t retaddr) { M68kCPU *cpu = M68K_CPU(cs); CPUM68KState *env = &cpu->env; - -#ifndef CONFIG_USER_ONLY hwaddr physical; int prot; int access_type; @@ -1051,12 +1047,12 @@ bool m68k_cpu_tlb_fill(CPUState *cs, vaddr address, int size, if (!(access_type & ACCESS_STORE)) { env->mmu.ssw |= M68K_RW_040; } -#endif cs->exception_index = EXCP_ACCESS; env->mmu.ar = address; cpu_loop_exit_restore(cs, retaddr); } +#endif /* !CONFIG_USER_ONLY */ uint32_t HELPER(bitrev)(uint32_t x) { |