diff mbox

[1/2] target-s390x: Mark op_csp() as !CONFIG_USER_ONLY

Message ID 1419373100-17690-2-git-send-email-peter.maydell@linaro.org
State New
Headers show

Commit Message

Peter Maydell Dec. 23, 2014, 10:18 p.m. UTC
The function op_csp() is only used in the softmmu configs; wrap it in
an #ifndef CONFIG_USER_ONLY to avoid clang warnings on the linux-user
builds.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 target-s390x/translate.c | 2 ++
 1 file changed, 2 insertions(+)
diff mbox

Patch

diff --git a/target-s390x/translate.c b/target-s390x/translate.c
index dbf1993..2802530 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);
 }
 
+#ifndef CONFIG_USER_ONLY
 static inline 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)
 {