target/arm: use syndrome helpers to set SAME_EL EC bit
This removes the last use of ARM_EL_EC_SHIFT. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Message-id: 20260422125250.1303100-18-alex.bennee@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Alex Bennée committed
Apr 22, 2026 at 13:52 UTC
fb6748166e6b18628f9028b347508b88adb38ffe
2 files changed
+1
-2
target/arm/syndrome.h
-1
@@ -107,7 +107,6 @@ typedef enum {
107
} GCSInstructionType;
108
109
#define ARM_EL_EC_LENGTH 6
110
-#define ARM_EL_EC_SHIFT 26
110
#define ARM_EL_IL_SHIFT 25
111
#define ARM_EL_ISV_SHIFT 24
112
#define ARM_EL_IL (1 << ARM_EL_IL_SHIFT)
target/arm/tcg/debug.c
+1
-1
@@ -56,7 +56,7 @@ raise_exception_debug(CPUARMState *env, uint32_t excp, uint32_t syndrome)
56
* Similarly for watchpoint and breakpoint matches.
57
*/
58
assert(debug_el >= cur_el);
59
- syndrome |= (debug_el == cur_el) << ARM_EL_EC_SHIFT;
59
+ syndrome |= (debug_el == cur_el) << R_SYNDROME_EC_SHIFT;
60
raise_exception(env, excp, syndrome, debug_el);
61
}
62