target/arm: Load gcs record for RET with PAuth
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20251008215613.300150-60-richard.henderson@linaro.org Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
488fab6fc9
commit
3d366bb67f
1 changed files with 6 additions and 1 deletions
|
|
@ -1898,7 +1898,12 @@ static bool trans_RETA(DisasContext *s, arg_reta *a)
|
|||
}
|
||||
|
||||
dst = auth_branch_target(s, cpu_reg(s, 30), cpu_X[31], !a->m);
|
||||
gen_a64_set_pc(s, dst);
|
||||
if (s->gcs_en) {
|
||||
GCSInstructionType it = a->m ? GCS_IT_RET_PauthB : GCS_IT_RET_PauthA;
|
||||
gen_load_check_gcs_record(s, dst, it, 30);
|
||||
} else {
|
||||
gen_a64_set_pc(s, dst);
|
||||
}
|
||||
s->base.is_jmp = DISAS_JUMP;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue