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>
This commit is contained in:
Richard Henderson 2022-02-26 01:02:18 -10:00
parent 6f83e277eb
commit d8e609e9bb
2 changed files with 1 additions and 5 deletions

View file

@ -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 */