diff options
author | Alex Bennée | 2019-05-14 14:50:45 +0200 |
---|---|---|
committer | Alex Bennée | 2019-05-28 11:28:51 +0200 |
commit | 82ba42666c5bb00438e96f4ec9c8a9206e1b02dd (patch) | |
tree | 15835e21e636c2d0402a02878cd6adb48eca77c0 /target/mips/translate.c | |
parent | target/arm: correct return values for WRITE/READ in arm-semi (diff) | |
download | qemu-82ba42666c5bb00438e96f4ec9c8a9206e1b02dd.tar.gz qemu-82ba42666c5bb00438e96f4ec9c8a9206e1b02dd.tar.xz qemu-82ba42666c5bb00438e96f4ec9c8a9206e1b02dd.zip |
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/translate.c')
-rw-r--r-- | target/mips/translate.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target/mips/translate.c b/target/mips/translate.c index 3cd5b11b16..fb905c88b5 100644 --- a/target/mips/translate.c +++ b/target/mips/translate.c @@ -13726,6 +13726,14 @@ static inline bool is_uhi(int sdbbp_code) #endif } +#ifdef CONFIG_USER_ONLY +/* The above should dead-code away any calls to this..*/ +static inline void gen_helper_do_semihosting(void *env) +{ + g_assert_not_reached(); +} +#endif + static int decode_mips16_opc (CPUMIPSState *env, DisasContext *ctx) { int rx, ry; |