mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-23 05:25:31 +00:00
target/sparc: Remove unused ldl_phys from dump_mmu()
The dump_mmu() function does a ldl_phys() at the start, but then never uses the value it loads at all. Remove the unused code. Backports commit 9dffeec2e003a482ca858a887d3454c6bebed91e from qemu
This commit is contained in:
parent
7d2ca16d7f
commit
47dd9a5286
|
@ -373,11 +373,9 @@ void dump_mmu(FILE *f, fprintf_function cpu_fprintf, CPUSPARCState *env)
|
|||
CPUState *cs = env_cpu(env);
|
||||
target_ulong va, va1, va2;
|
||||
unsigned int n, m, o;
|
||||
hwaddr pde_ptr, pa;
|
||||
hwaddr pa;
|
||||
uint32_t pde;
|
||||
|
||||
pde_ptr = (env->mmuregs[1] << 4) + (env->mmuregs[2] << 2);
|
||||
pde = ldl_phys(cs->as, pde_ptr);
|
||||
(*cpu_fprintf)(f, "Root ptr: " TARGET_FMT_plx ", ctx: %d\n",
|
||||
(hwaddr)env->mmuregs[1] << 4, env->mmuregs[2]);
|
||||
for (n = 0, va = 0; n < 256; n++, va += 16 * 1024 * 1024) {
|
||||
|
|
Loading…
Reference in a new issue