mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 10:48:19 +00:00
target/sparc/mmu_helper: Perform comparison pass against qemu
Ensure code and formatting match qemu
This commit is contained in:
parent
83c0769d90
commit
0215431990
1 changed files with 8 additions and 0 deletions
|
@ -28,10 +28,18 @@
|
|||
int sparc_cpu_handle_mmu_fault(CPUState *cs, vaddr address, int size, int rw,
|
||||
int mmu_idx)
|
||||
{
|
||||
SPARCCPU *cpu = SPARC_CPU(cs->uc, cs);
|
||||
CPUSPARCState *env = &cpu->env;
|
||||
|
||||
if (rw & 2) {
|
||||
cs->exception_index = TT_TFAULT;
|
||||
} else {
|
||||
cs->exception_index = TT_DFAULT;
|
||||
#ifdef TARGET_SPARC64
|
||||
env->dmmu.mmuregs[4] = address;
|
||||
#else
|
||||
env->mmuregs[4] = address;
|
||||
#endif
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue