]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target/nios2: Only build mmu.c for system mode
authorRichard Henderson <richard.henderson@linaro.org>
Sat, 26 Feb 2022 11:02:18 +0000 (01:02 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 3 Mar 2022 19:37:18 +0000 (09:37 -1000)
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>
target/nios2/meson.build
target/nios2/mmu.c

index e643917db1a56b0c948091a1c3f420f0c49cdbe2..62b384702d75605ad41f19443ec8a1492d1fb1de 100644 (file)
@@ -2,14 +2,13 @@ nios2_ss = ss.source_set()
 nios2_ss.add(files(
   'cpu.c',
   'helper.c',
-  'mmu.c',
   'nios2-semi.c',
   'op_helper.c',
   'translate.c',
 ))
 
 nios2_softmmu_ss = ss.source_set()
-nios2_softmmu_ss.add(files('monitor.c'))
+nios2_softmmu_ss.add(files('monitor.c', 'mmu.c'))
 
 target_arch += {'nios2': nios2_ss}
 target_softmmu_arch += {'nios2': nios2_softmmu_ss}
index 306370f6757ddf86ead9bfcc9b0ab01b288b8ec1..437fad09b76747e444b329a609e9087e0d411e47 100644 (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 */