aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2025-04-25 11:59:58 -0700
committerRichard Henderson <richard.henderson@linaro.org>2025-04-28 13:40:17 -0700
commit33b6c61cce2403193f9fc3a221f8a8656ba9cc37 (patch)
tree3c86cc353c52fe4d7f12c7a5c1a34404731dc369
parenteafecf08059953a2d1d06b6a6ded3c56916cbdd4 (diff)
downloadqemu-33b6c61cce2403193f9fc3a221f8a8656ba9cc37.zip
qemu-33b6c61cce2403193f9fc3a221f8a8656ba9cc37.tar.gz
qemu-33b6c61cce2403193f9fc3a221f8a8656ba9cc37.tar.bz2
tcg/sparc64: Unexport use_vis3_instructions
This variable is no longer used outside tcg-target.c.inc. Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
-rw-r--r--tcg/sparc64/tcg-target-has.h6
-rw-r--r--tcg/sparc64/tcg-target.c.inc6
2 files changed, 4 insertions, 8 deletions
diff --git a/tcg/sparc64/tcg-target-has.h b/tcg/sparc64/tcg-target-has.h
index af6a949..b29fd17 100644
--- a/tcg/sparc64/tcg-target-has.h
+++ b/tcg/sparc64/tcg-target-has.h
@@ -7,12 +7,6 @@
#ifndef TCG_TARGET_HAS_H
#define TCG_TARGET_HAS_H
-#if defined(__VIS__) && __VIS__ >= 0x300
-#define use_vis3_instructions 1
-#else
-extern bool use_vis3_instructions;
-#endif
-
/* optional instructions */
#define TCG_TARGET_HAS_extr_i64_i32 0
#define TCG_TARGET_HAS_qemu_ldst_i128 0
diff --git a/tcg/sparc64/tcg-target.c.inc b/tcg/sparc64/tcg-target.c.inc
index 83167aa..260dd46 100644
--- a/tcg/sparc64/tcg-target.c.inc
+++ b/tcg/sparc64/tcg-target.c.inc
@@ -274,8 +274,10 @@ static TCGReg tcg_target_call_oarg_reg(TCGCallReturnKind kind, int slot)
#define STW_LE (STWA | INSN_ASI(ASI_PRIMARY_LITTLE))
#define STX_LE (STXA | INSN_ASI(ASI_PRIMARY_LITTLE))
-#ifndef use_vis3_instructions
-bool use_vis3_instructions;
+#if defined(__VIS__) && __VIS__ >= 0x300
+#define use_vis3_instructions 1
+#else
+static bool use_vis3_instructions;
#endif
static bool check_fit_i64(int64_t val, unsigned int bits)