]> git.proxmox.com Git - mirror_qemu.git/commitdiff
target/arm: Move arm_singlestep_active out of line
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 10 Jun 2022 13:32:30 +0000 (14:32 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 10 Jun 2022 13:32:30 +0000 (14:32 +0100)
Move the function to debug_helper.c, and the
declaration to internals.h.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20220609202901.1177572-5-richard.henderson@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target/arm/cpu.h
target/arm/debug_helper.c
target/arm/internals.h

index 78dbcb5592c7995c36df8fa3ad4a30194837d0b2..bb1dc3289a2e1290033deb7aafdf51804611bf1a 100644 (file)
@@ -3106,16 +3106,6 @@ static inline bool arm_generate_debug_exceptions(CPUARMState *env)
     }
 }
 
-/* Is single-stepping active? (Note that the "is EL_D AArch64?" check
- * implicitly means this always returns false in pre-v8 CPUs.)
- */
-static inline bool arm_singlestep_active(CPUARMState *env)
-{
-    return extract32(env->cp15.mdscr_el1, 0, 1)
-        && arm_el_is_aa64(env, arm_debug_target_el(env))
-        && arm_generate_debug_exceptions(env);
-}
-
 static inline bool arm_sctlr_b(CPUARMState *env)
 {
     return
index 46893697cc7465f0be7fe028ddd99a86fd789560..1abf41c5f850694c31328780998c80349dd427a6 100644 (file)
 #include "exec/exec-all.h"
 #include "exec/helper-proto.h"
 
+
+/*
+ * Is single-stepping active? (Note that the "is EL_D AArch64?" check
+ * implicitly means this always returns false in pre-v8 CPUs.)
+ */
+bool arm_singlestep_active(CPUARMState *env)
+{
+    return extract32(env->cp15.mdscr_el1, 0, 1)
+        && arm_el_is_aa64(env, arm_debug_target_el(env))
+        && arm_generate_debug_exceptions(env);
+}
+
 /* Return true if the linked breakpoint entry lbn passes its checks */
 static bool linked_bp_matches(ARMCPU *cpu, int lbn)
 {
index af9de2dbe52c9d2552f7bd27a2a5a261187f76f2..64e2c1dfad42b52f88119c5fe32924e7cf668aff 100644 (file)
@@ -1325,6 +1325,7 @@ bool el_is_in_host(CPUARMState *env, int el);
 
 void aa32_max_features(ARMCPU *cpu);
 int exception_target_el(CPUARMState *env);
+bool arm_singlestep_active(CPUARMState *env);
 
 /* Powers of 2 for sve_vq_map et al. */
 #define SVE_VQ_POW2_MAP                                 \