aboutsummaryrefslogtreecommitdiff
path: root/target/nios2/mmu.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2022-02-26 01:02:18 -1000
committerRichard Henderson <richard.henderson@linaro.org>2022-03-03 09:37:18 -1000
commitd8e609e9bb5a6b70ae2ba45fd14efffada013752 (patch)
treef9b748dccdff797ff3f71a1c242ce396bc223530 /target/nios2/mmu.c
parent6f83e277eb9fa56c89fb25903834a21725655920 (diff)
target/nios2: Only build mmu.c for system mode
We can thus remove an ifdef covering the entire file. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/nios2/mmu.c')
-rw-r--r--target/nios2/mmu.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/target/nios2/mmu.c b/target/nios2/mmu.c
index 306370f675..437fad09b7 100644
--- a/target/nios2/mmu.c
+++ b/target/nios2/mmu.c
@@ -25,7 +25,6 @@
#include "mmu.h"
#include "trace/trace-target_nios2.h"
-#if !defined(CONFIG_USER_ONLY)
/* rw - 0 = read, 1 = write, 2 = fetch. */
unsigned int mmu_translate(CPUNios2State *env,
@@ -217,5 +216,3 @@ void dump_mmu(CPUNios2State *env)
(entry->data & CR_TLBACC_X) ? 'X' : '-');
}
}
-
-#endif /* !CONFIG_USER_ONLY */