diff options
author | Richard Henderson <richard.henderson@linaro.org> | 2022-04-29 19:50:02 -0700 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2022-06-28 10:18:57 +0530 |
commit | ca97e0ef99045ce650b842f3bc8c89d76daaafae (patch) | |
tree | b5cc9c2dab4334b6ccd544a71a372424e3bd0f74 /target | |
parent | 79cc9724c28c1327deaa5cb8888f44b80640c516 (diff) | |
download | qemu-ca97e0ef99045ce650b842f3bc8c89d76daaafae.zip qemu-ca97e0ef99045ce650b842f3bc8c89d76daaafae.tar.gz qemu-ca97e0ef99045ce650b842f3bc8c89d76daaafae.tar.bz2 |
target/nios2: Move nios2-semi.c to nios2_softmmu_ss
Semihosting is not enabled for nios2-linux-user.
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')
-rw-r--r-- | target/nios2/meson.build | 4 | ||||
-rw-r--r-- | target/nios2/nios2-semi.c | 5 |
2 files changed, 2 insertions, 7 deletions
diff --git a/target/nios2/meson.build b/target/nios2/meson.build index 2bd60ba..c6e2243 100644 --- a/target/nios2/meson.build +++ b/target/nios2/meson.build @@ -1,7 +1,6 @@ nios2_ss = ss.source_set() nios2_ss.add(files( 'cpu.c', - 'nios2-semi.c', 'op_helper.c', 'translate.c', )) @@ -10,7 +9,8 @@ nios2_softmmu_ss = ss.source_set() nios2_softmmu_ss.add(files( 'helper.c', 'monitor.c', - 'mmu.c' + 'mmu.c', + 'nios2-semi.c', )) target_arch += {'nios2': nios2_ss} diff --git a/target/nios2/nios2-semi.c b/target/nios2/nios2-semi.c index bdf8849..55061bb 100644 --- a/target/nios2/nios2-semi.c +++ b/target/nios2/nios2-semi.c @@ -22,14 +22,9 @@ */ #include "qemu/osdep.h" - #include "cpu.h" #include "exec/gdbstub.h" -#if defined(CONFIG_USER_ONLY) -#include "qemu.h" -#else #include "semihosting/softmmu-uaccess.h" -#endif #include "qemu/log.h" #define HOSTED_EXIT 0 |