target/arm: Fix decode of LDRA[AB] instructions
These instructions use zero as the discriminator, not SP. Signed-off-by: Peter Collingbourne <pcc@google.com> Message-id: 20200804002849.30268-1-pcc@google.com Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
ffdfca6fac
commit
d250bb19ce
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user