mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
target/xtensa: Make xtensa_cpu_tlb_fill sysemu only
The fallback code in cpu_loop_exit_sigsegv is sufficient for xtensa linux-user. Remove the code from cpu_loop that raised SIGSEGV. Acked-by: Max Filippov <jcmvbkbc@gmail.com> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
parent
caac44a52a
commit
6407f64fcf
4 changed files with 3 additions and 32 deletions
|
@ -242,27 +242,7 @@ void xtensa_cpu_list(void)
|
|||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_USER_ONLY
|
||||
|
||||
bool xtensa_cpu_tlb_fill(CPUState *cs, vaddr address, int size,
|
||||
MMUAccessType access_type, int mmu_idx,
|
||||
bool probe, uintptr_t retaddr)
|
||||
{
|
||||
XtensaCPU *cpu = XTENSA_CPU(cs);
|
||||
CPUXtensaState *env = &cpu->env;
|
||||
|
||||
qemu_log_mask(CPU_LOG_INT,
|
||||
"%s: rw = %d, address = 0x%08" VADDR_PRIx ", size = %d\n",
|
||||
__func__, access_type, address, size);
|
||||
env->sregs[EXCVADDR] = address;
|
||||
env->sregs[EXCCAUSE] = (access_type == MMU_DATA_STORE ?
|
||||
STORE_PROHIBITED_CAUSE : LOAD_PROHIBITED_CAUSE);
|
||||
cs->exception_index = EXC_USER;
|
||||
cpu_loop_exit_restore(cs, retaddr);
|
||||
}
|
||||
|
||||
#else /* !CONFIG_USER_ONLY */
|
||||
|
||||
#ifndef CONFIG_USER_ONLY
|
||||
void xtensa_cpu_do_unaligned_access(CPUState *cs,
|
||||
vaddr addr, MMUAccessType access_type,
|
||||
int mmu_idx, uintptr_t retaddr)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue