mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-26 01:26:56 +00:00
target/mips: Pass a valid error to raise_mmu_exception for user-only
At present we give ret = 0, or TLBRET_MATCH. This gets matched by the default case, which falls through to TLBRET_BADADDR. However, it makes more sense to use a proper value. All of the tlb-related exceptions are handled identically in cpu_loop.c, so TLBRET_BADADDR is as good as any other. Retain it. Backports commit 995ffde9622c01f5b307cab47f9bd7962ac09db2 from qemu
This commit is contained in:
parent
52998fe46d
commit
f175e89ca2
|
@ -872,7 +872,7 @@ int mips_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int size, int rw,
|
||||||
int prot;
|
int prot;
|
||||||
int access_type;
|
int access_type;
|
||||||
#endif
|
#endif
|
||||||
int ret = 0;
|
int ret = TLBRET_BADADDR;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
log_cpu_state(cs, 0);
|
log_cpu_state(cs, 0);
|
||||||
|
|
Loading…
Reference in a new issue