]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
target/arm: set the correct TI bits for WFIT traps
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 26 Feb 2026 11:27:18 +0000 (11:27 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 26 Feb 2026 11:27:18 +0000 (11:27 +0000)
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>
target/arm/tcg/op_helper.c

index 4d70863506845f85b13a8730b3f41a24bc35c6fd..aa14f15eb6220418a03409a92006869f89e917b9 100644 (file)
@@ -448,7 +448,7 @@ void HELPER(wfit)(CPUARMState *env, uint64_t timeout)
 
     if (target_el) {
         env->pc -= 4;
-        raise_exception(env, excp, syn_wfx(1, 0xe, 0, false), target_el);
+        raise_exception(env, excp, syn_wfx(1, 0xe, 2, false), target_el);
     }
 
     if (uadd64_overflow(timeout, offset, &nexttick)) {