From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54350) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3XqW-0001dK-Iy for qemu-devel@nongnu.org; Tue, 23 Dec 2014 17:22:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y3XqL-0000KM-DC for qemu-devel@nongnu.org; Tue, 23 Dec 2014 17:22:28 -0500 Received: from mnementh.archaic.org.uk ([2001:8b0:1d0::1]:54634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y3XqL-0000J0-6x for qemu-devel@nongnu.org; Tue, 23 Dec 2014 17:22:17 -0500 From: Peter Maydell Date: Tue, 23 Dec 2014 22:22:15 +0000 Message-Id: <1419373336-17800-2-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1419373336-17800-1-git-send-email-peter.maydell@linaro.org> References: <1419373336-17800-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 1/2] target-ppc: Mark SR() and gen_sync_exception() as !CONFIG_USER_ONLY List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: qemu-ppc@nongnu.org, Alexander Graf 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 --- target-ppc/translate.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/target-ppc/translate.c b/target-ppc/translate.c index d381632..78b9cf3 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -346,11 +346,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) @@ -452,7 +454,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); -- 1.9.1