From 47dd9a528682b24ffaa8beccda54ca281291969f Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Wed, 20 Nov 2019 13:47:28 -0500 Subject: [PATCH] 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 --- qemu/target/sparc/mmu_helper.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/qemu/target/sparc/mmu_helper.c b/qemu/target/sparc/mmu_helper.c index 5a4264a2..f8432af8 100644 --- a/qemu/target/sparc/mmu_helper.c +++ b/qemu/target/sparc/mmu_helper.c @@ -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) {