]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm: Drop stub for define_tlb_insn_regs
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 7 Jul 2025 15:15:45 +0000 (09:15 -0600)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 10 Jul 2025 08:16:46 +0000 (09:16 +0100)
Allow the call to be compiled out by protecting it
with tcg_enabled.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20250707151547.196393-2-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/helper.c
target/arm/tcg-stubs.c

index 3ea9958ea7ab430cf401ab015b4480b2635bacea..c1b684e3d1ccf97772cebb7e354b37a36e986dd9 100644 (file)
@@ -7771,7 +7771,9 @@ void register_cp_regs_for_features(ARMCPU *cpu)
     }
 
 #ifndef CONFIG_USER_ONLY
-    define_tlb_insn_regs(cpu);
+    if (tcg_enabled()) {
+        define_tlb_insn_regs(cpu);
+    }
 #endif
 
     if (arm_feature(env, ARM_FEATURE_V6)) {
index 5e5166c04907f468372d541f325e2a8ebc2671a2..aac99b2672a297d73b31dfbb018b83c01818c2fa 100644 (file)
@@ -22,11 +22,6 @@ void raise_exception_ra(CPUARMState *env, uint32_t excp, uint32_t syndrome,
     g_assert_not_reached();
 }
 
-/* TLBI insns are only used by TCG, so we don't need to do anything for KVM */
-void define_tlb_insn_regs(ARMCPU *cpu)
-{
-}
-
 /* With KVM, we never use float_status, so these can be no-ops */
 void arm_set_default_fp_behaviours(float_status *s)
 {