[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/5] target-mips/translate.c: Add ifdef guard around
From: |
Peter Maydell |
Subject: |
[Qemu-devel] [PATCH 2/5] target-mips/translate.c: Add ifdef guard around check_mips64() |
Date: |
Sun, 14 Sep 2014 20:45:35 +0100 |
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 <address@hidden>
---
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
- [Qemu-devel] [PATCH 0/5] target-mips: Fix unused-function warnings, Peter Maydell, 2014/09/14
- [Qemu-devel] [PATCH 4/5] target-mips/dsp_helper.c: Remove unused function get_DSPControl_24(), Peter Maydell, 2014/09/14
- [Qemu-devel] [PATCH 5/5] target-mips/op_helper.c: Remove unused do_lbu() function, Peter Maydell, 2014/09/14
- [Qemu-devel] [PATCH 3/5] target-mips/dsp_helper.c: Add ifdef guards around various functions, Peter Maydell, 2014/09/14
- [Qemu-devel] [PATCH 2/5] target-mips/translate.c: Add ifdef guard around check_mips64(),
Peter Maydell <=
- [Qemu-devel] [PATCH 1/5] target-mips: Remove unused gen_load_ACX, gen_store_ACX and cpu_ACX, Peter Maydell, 2014/09/14
- Re: [Qemu-devel] [PATCH 0/5] target-mips: Fix unused-function warnings, Richard Henderson, 2014/09/15