diff options
author | Peter Maydell <peter.maydell@linaro.org> | 2015-01-26 16:28:30 +0000 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2015-02-03 12:25:48 -0800 |
commit | 8841d9dfc7f871cec7c3401a8a2d31ad34e881f7 (patch) | |
tree | 714d6280a4c74ced62185ce30309d639c44dd72d | |
parent | 0774710f1bd052b05cc68ca3af06d8fc1a65664b (diff) | |
download | qemu-8841d9dfc7f871cec7c3401a8a2d31ad34e881f7.zip |
target-s390x: Mark check_privileged() as !CONFIG_USER_ONLY
The function check_privileged() is only used in the softmmu configs;
wrap it in an #ifndef CONFIG_USER_ONLY to avoid clang warnings on the
linux-user builds.
[rth: Remove inline marker too; it was only there to prevent exactly
this warning in GCC.]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Stefan Weil <sw@weilnetz.de>
Message-id: 1419373100-17690-2-git-send-email-peter.maydell@linaro.org
Signed-off-by: Richard Henderson <rth@twiddle.net>
-rw-r--r-- | target-s390x/translate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target-s390x/translate.c b/target-s390x/translate.c index e7a6c1d621..8b36eca718 100644 --- a/target-s390x/translate.c +++ b/target-s390x/translate.c @@ -317,12 +317,14 @@ static inline void gen_illegal_opcode(DisasContext *s) gen_program_exception(s, PGM_SPECIFICATION); } -static inline void check_privileged(DisasContext *s) +#ifndef CONFIG_USER_ONLY +static void check_privileged(DisasContext *s) { if (s->tb->flags & (PSW_MASK_PSTATE >> 32)) { gen_program_exception(s, PGM_PRIVILEGED); } } +#endif static TCGv_i64 get_address(DisasContext *s, int x2, int b2, int d2) { |