summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2026-02-26 11:27:18 +0000
committerMichael Tokarev <mjt@tls.msk.ru>2026-02-26 23:14:13 +0300
commita9045a734df7c72435f56d6397381aea819e2c93 (patch)
tree428650f8aa366cd976be34801be963ff1c9fd683
parentf0dc5d09059aaab57ae40e6956453946997abab9 (diff)
downloadqemu-a9045a734df7c72435f56d6397381aea819e2c93.tar.gz
qemu-a9045a734df7c72435f56d6397381aea819e2c93.zip
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> (cherry picked from commit 662fd548a027c9362df71ebfc0c9cdd7b1f349fb) Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r--target/arm/tcg/op_helper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/arm/tcg/op_helper.c b/target/arm/tcg/op_helper.c
index 575e566280..048090369f 100644
--- a/target/arm/tcg/op_helper.c
+++ b/target/arm/tcg/op_helper.c
@@ -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)) {