aboutsummaryrefslogtreecommitdiff
path: root/target/mips/helper.h
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2019-05-14 13:50:45 +0100
committerAlex Bennée <alex.bennee@linaro.org>2019-05-28 10:28:51 +0100
commit82ba42666c5bb00438e96f4ec9c8a9206e1b02dd (patch)
tree15835e21e636c2d0402a02878cd6adb48eca77c0 /target/mips/helper.h
parent629a0b065af074a43176968e1e242b87fc3be39f (diff)
downloadqemu-82ba42666c5bb00438e96f4ec9c8a9206e1b02dd.zip
qemu-82ba42666c5bb00438e96f4ec9c8a9206e1b02dd.tar.gz
qemu-82ba42666c5bb00438e96f4ec9c8a9206e1b02dd.tar.bz2
target/mips: only build mips-semi for softmmu
The is_uhi gates all semihosting calls and always returns false for CONFIG_USER_ONLY builds. There is no reason to build and link mips-semi for these builds so lets fix that. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Aleksandar Markovic <amarkovic@wavecomp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'target/mips/helper.h')
-rw-r--r--target/mips/helper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/mips/helper.h b/target/mips/helper.h
index a6d687e..90ab03b 100644
--- a/target/mips/helper.h
+++ b/target/mips/helper.h
@@ -2,7 +2,9 @@ DEF_HELPER_3(raise_exception_err, noreturn, env, i32, int)
DEF_HELPER_2(raise_exception, noreturn, env, i32)
DEF_HELPER_1(raise_exception_debug, noreturn, env)
+#ifndef CONFIG_USER_ONLY
DEF_HELPER_1(do_semihosting, void, env)
+#endif
#ifdef TARGET_MIPS64
DEF_HELPER_4(sdl, void, env, tl, tl, int)