aboutsummaryrefslogtreecommitdiff
path: root/target/nios2/mmu.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-02-25 18:49:29 -1000
committerRichard Henderson <richard.henderson@linaro.org>2022-03-03 09:36:19 -1000
commit1fb877a467014ec5a31cac63b067a38c13c684f0 (patch)
treebf66edff1efb3bb737cdbf57a0eaa2af83527a44 /target/nios2/mmu.c
parent36eae3a732a1f2aa81391e871ac0e9bb3233e7d7 (diff)
target/nios2: Remove mmu_read_debug
This functionality can be had via plugins, if desired. In the meantime, it is unused code. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/nios2/mmu.c')
-rw-r--r--target/nios2/mmu.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/target/nios2/mmu.c b/target/nios2/mmu.c
index 2545c06761..5616c39d54 100644
--- a/target/nios2/mmu.c
+++ b/target/nios2/mmu.c
@@ -35,26 +35,6 @@
#define MMU_LOG(x)
#endif
-void mmu_read_debug(CPUNios2State *env, uint32_t rn)
-{
- switch (rn) {
- case CR_TLBACC:
- MMU_LOG(qemu_log("TLBACC READ %08X\n", env->regs[rn]));
- break;
-
- case CR_TLBMISC:
- MMU_LOG(qemu_log("TLBMISC READ %08X\n", env->regs[rn]));
- break;
-
- case CR_PTEADDR:
- MMU_LOG(qemu_log("PTEADDR READ %08X\n", env->regs[rn]));
- break;
-
- default:
- break;
- }
-}
-
/* rw - 0 = read, 1 = write, 2 = fetch. */
unsigned int mmu_translate(CPUNios2State *env,
Nios2MMULookup *lu,