Received: from eggs.gnu.org ([2001:4830:134:3::10]:42082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeLIW-0000lO-8e for qemu-devel@nongnu.org; Wed, 15 Oct 2014 05:55:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XeLIR-0000mT-Q1 for qemu-devel@nongnu.org; Wed, 15 Oct 2014 05:55:12 -0400 Received: from mailapp01.imgtec.com ([195.59.15.196]:42822) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XeLIR-0000mG-Km for qemu-devel@nongnu.org; Wed, 15 Oct 2014 05:55:07 -0400 From: Leon Alrae Date: Wed, 15 Oct 2014 10:54:18 +0100 Message-ID: <1413366860-7833-27-git-send-email-leon.alrae@imgtec.com> In-Reply-To: <1413366860-7833-1-git-send-email-leon.alrae@imgtec.com> References: <1413366860-7833-1-git-send-email-leon.alrae@imgtec.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PULL 26/28] 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: Peter Maydell From: Peter Maydell 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 Reviewed-by: Richard Henderson Signed-off-by: Leon Alrae --- target-mips/translate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target-mips/translate.c b/target-mips/translate.c index 8b62e66..c23cb94 100644 --- a/target-mips/translate.c +++ b/target-mips/translate.c @@ -1548,6 +1548,7 @@ static inline void check_insn_opc_removed(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) @@ -1555,6 +1556,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.1.0