diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2019-08-01 19:30:11 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2019-09-17 12:01:00 +0100 |
commit | 9dffeec2e003a482ca858a887d3454c6bebed91e (patch) | |
tree | e73d82145efddf6ee7f36f602ea6c583def99750 /target/sparc/mmu_helper.c | |
parent | d86a9ad33c75ed795f09fb43243d0acecd583f24 (diff) | |
download | qemu-9dffeec2e003a482ca858a887d3454c6bebed91e.zip qemu-9dffeec2e003a482ca858a887d3454c6bebed91e.tar.gz qemu-9dffeec2e003a482ca858a887d3454c6bebed91e.tar.bz2 |
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.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Message-id: 20190801183012.17564-7-peter.maydell@linaro.org
Diffstat (limited to 'target/sparc/mmu_helper.c')
-rw-r--r-- | target/sparc/mmu_helper.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/target/sparc/mmu_helper.c b/target/sparc/mmu_helper.c index 0267ae4..afbfba7 100644 --- a/target/sparc/mmu_helper.c +++ b/target/sparc/mmu_helper.c @@ -376,11 +376,9 @@ void dump_mmu(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); qemu_printf("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) { |