From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54661) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTFw2-0007J6-J6 for qemu-devel@nongnu.org; Sun, 14 Sep 2014 15:58:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XTFvw-0007cg-S3 for qemu-devel@nongnu.org; Sun, 14 Sep 2014 15:58:10 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:47029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XTFvw-0007YL-Mk for qemu-devel@nongnu.org; Sun, 14 Sep 2014 15:58:04 -0400 From: Peter Maydell Date: Sun, 14 Sep 2014 20:45:35 +0100 Message-Id: <1410723938-18007-3-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1410723938-18007-1-git-send-email-peter.maydell@linaro.org> References: <1410723938-18007-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 2/5] target-mips/translate.c: Add ifdef guard around check_mips64() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Richard Henderson , Aurelien Jarno , patches@linaro.org The function check_mips64() is only used if TARGET_MIPS64 is defined; add an ifdef guard to its definition to avoid warnings about it being unused in other configurations. Signed-off-by: Peter Maydell --- target-mips/translate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-mips/translate.c b/target-mips/translate.c index 2ce9fed..b3a2a37 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -1421,6 +1421,7 @@ static inline void check_insn(DisasContext *ctx, int flags) } } +#ifdef TARGET_MIPS64 /* This code generates a "reserved instruction" exception if 64-bit instructions are not enabled. */ static inline void check_mips_64(DisasContext *ctx) @@ -1428,6 +1429,7 @@ static inline void check_mips_64(DisasContext *ctx) if (unlikely(!(ctx->hflags & MIPS_HFLAG_64))) generate_exception(ctx, EXCP_RI); } +#endif /* Define small wrappers for gen_load_fpr* so that we have a uniform calling interface for 32 and 64-bit FPRs. No sense in changing -- 2.0.0