mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
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>
This commit is contained in:
parent
f74bd157c6
commit
028772c45c
3 changed files with 2 additions and 16 deletions
|
@ -515,9 +515,9 @@ static const struct SysemuCPUOps m68k_sysemu_ops = {
|
|||
|
||||
static const struct TCGCPUOps m68k_tcg_ops = {
|
||||
.initialize = m68k_tcg_init,
|
||||
.tlb_fill = m68k_cpu_tlb_fill,
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
.tlb_fill = m68k_cpu_tlb_fill,
|
||||
.cpu_exec_interrupt = m68k_cpu_exec_interrupt,
|
||||
.do_interrupt = m68k_cpu_do_interrupt,
|
||||
.do_transaction_failed = m68k_cpu_transaction_failed,
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue