aboutsummaryrefslogtreecommitdiff
path: root/target-ppc/translate.c
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2014-12-23 22:22:15 +0000
committerAlexander Graf <agraf@suse.de>2015-01-07 16:16:28 +0100
commit466976d9eed8d618aed93cb1fac04845e86253cf (patch)
tree82a94fc3e6f3bc1ecca26b8c838b19f91d9582e2 /target-ppc/translate.c
parent82e345f57e6482cef960677613125c5aaf2b1654 (diff)
downloadqemu-466976d9eed8d618aed93cb1fac04845e86253cf.zip
qemu-466976d9eed8d618aed93cb1fac04845e86253cf.tar.gz
qemu-466976d9eed8d618aed93cb1fac04845e86253cf.tar.bz2
target-ppc: Mark SR() and gen_sync_exception() as !CONFIG_USER_ONLY
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>
Diffstat (limited to 'target-ppc/translate.c')
-rw-r--r--target-ppc/translate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index 58d7db3..6e9ab02 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -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);