]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
target-ppc: Mark SR() and gen_sync_exception() as !CONFIG_USER_ONLY
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 23 Dec 2014 22:22:15 +0000 (22:22 +0000)
committerAlexander Graf <agraf@suse.de>
Wed, 7 Jan 2015 15:16:28 +0000 (16:16 +0100)
The functions SR() and gen_sync_exception() are only used in softmmu
configs; wrap them in #ifndef CONFIG_USER_ONLY to suppress clang warnings
on the linux-user builds.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Alexander Graf <agraf@suse.de>
target-ppc/translate.c

index 58d7db33c6c11840d8bcbe7056d5d0ada473e299..6e9ab02f33a64d7923dd1a42637be4757d881adb 100644 (file)
@@ -331,11 +331,13 @@ static inline void gen_stop_exception(DisasContext *ctx)
     ctx->exception = POWERPC_EXCP_STOP;
 }
 
+#ifndef CONFIG_USER_ONLY
 /* No need to update nip here, as execution flow will change */
 static inline void gen_sync_exception(DisasContext *ctx)
 {
     ctx->exception = POWERPC_EXCP_SYNC;
 }
+#endif
 
 #define GEN_HANDLER(name, opc1, opc2, opc3, inval, type)                      \
 GEN_OPCODE(name, opc1, opc2, opc3, inval, type, PPC_NONE)
@@ -437,7 +439,10 @@ EXTRACT_HELPER(ME, 1, 5);
 EXTRACT_HELPER(TO, 21, 5);
 
 EXTRACT_HELPER(CRM, 12, 8);
+
+#ifndef CONFIG_USER_ONLY
 EXTRACT_HELPER(SR, 16, 4);
+#endif
 
 /* mtfsf/mtfsfi */
 EXTRACT_HELPER(FPBF, 23, 3);