target/arm: Fix decode of LDRA[AB] instructions
PATCH v2 1/1 target/arm: Fix decode of LDRA[AB] instructions
These instructions use zero as the discriminator, not SP.
Signed-off-by Peter Collingbourne <[email protected]>
---
v2:
- fixed commit message
target/arm/translate-a64.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
target/arm/translate-a64.c +4 -2
@@ -3429,9 +3429,11 @@ static void disas_ldst_pac(DisasContext *s, uint32_t insn,if (s->pauth_active) {if (use_key_a) { -gen_helper_autda (dirty_addr, cpu_env, dirty_addr, cpu_X[31 ]); +gen_helper_autda (dirty_addr, cpu_env, dirty_addr, +new_tmp_a64_zero (s)); }else { -gen_helper_autdb (dirty_addr, cpu_env, dirty_addr, cpu_X[31 ]); +gen_helper_autdb (dirty_addr, cpu_env, dirty_addr, +new_tmp_a64_zero (s)); } }
Signature · 1 line
2.28.0.163.g6104cc2f0b6-goog
Quoted 6 lines · Peter Collingbourne
These instructions use zero as the discriminator, not SP.
Signed-off-by Peter Collingbourne <[email protected]>---
v2:
- fixed commit message
Reviewed-by Richard Henderson <[email protected]>
r~
Peter Maydell
AppliedQuoted 10 lines · Richard Henderson
Quoted 6 lines · Peter Collingbourne
These instructions use zero as the discriminator, not SP.
Signed-off-by Peter Collingbourne <[email protected]>---
v2:
- fixed commit messageReviewed-by Richard Henderson <[email protected]>
Applied to target-arm.next, thanks.
-- PMM