target/arm: set the correct TI bits for WFIT traps
The WFIT trap should be reported as 0b10. Cc: qemu-stable@nongnu.org Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Gustavo Romero <gustavo.romero@linaro.org> Message-id: 20260220171945.1065102-1-alex.bennee@linaro.org Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Alex Bennée committed
Feb 26, 2026 at 11:27 UTC
662fd548a027c9362df71ebfc0c9cdd7b1f349fb
1 file changed
+1
-1
target/arm/tcg/op_helper.c
+1
-1
@@ -448,7 +448,7 @@ void HELPER(wfit)(CPUARMState *env, uint64_t timeout)
448
449
if (target_el) {
450
env->pc -= 4;
451
- raise_exception(env, excp, syn_wfx(1, 0xe, 0, false), target_el);
451
+ raise_exception(env, excp, syn_wfx(1, 0xe, 2, false), target_el);
452
}
453
454
if (uadd64_overflow(timeout, offset, &nexttick)) {