* [PATCH] target/arm: Make RETA[AB] UNDEF when pauth is not implemented
@ 2025-06-16 17:15 Solomon Tan
2025-06-16 19:27 ` Alex Bennée
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Solomon Tan @ 2025-06-16 17:15 UTC (permalink / raw)
Cc: peter.maydell, qemu-arm, qemu-devel, Solomon Tan
According to the Arm A-profile A64 Instruction Set Architecture,
RETA[AB] should be decoded as UNDEF if the pauth feature is not
implemented.
Fixes: 0ebbe9021254f ("target/arm: Convert BRA[AB]Z, BLR[AB]Z, RETA[AB] to decodetree")
Signed-off-by: Solomon Tan <root@wjsota.com>
---
target/arm/tcg/translate-a64.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/target/arm/tcg/translate-a64.c b/target/arm/tcg/translate-a64.c
index ac80f572a2..d0719b5665 100644
--- a/target/arm/tcg/translate-a64.c
+++ b/target/arm/tcg/translate-a64.c
@@ -1816,6 +1816,10 @@ static bool trans_RETA(DisasContext *s, arg_reta *a)
{
TCGv_i64 dst;
+ if (!dc_isar_feature(aa64_pauth, s)) {
+ return false;
+ }
+
dst = auth_branch_target(s, cpu_reg(s, 30), cpu_X[31], !a->m);
gen_a64_set_pc(s, dst);
s->base.is_jmp = DISAS_JUMP;
--
2.48.1
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] target/arm: Make RETA[AB] UNDEF when pauth is not implemented
2025-06-16 17:15 [PATCH] target/arm: Make RETA[AB] UNDEF when pauth is not implemented Solomon Tan
@ 2025-06-16 19:27 ` Alex Bennée
2025-06-18 1:49 ` Richard Henderson
2025-06-30 14:41 ` Peter Maydell
2 siblings, 0 replies; 4+ messages in thread
From: Alex Bennée @ 2025-06-16 19:27 UTC (permalink / raw)
To: Solomon Tan; +Cc: peter.maydell, qemu-arm, qemu-devel
Solomon Tan <root@wjsota.com> writes:
> According to the Arm A-profile A64 Instruction Set Architecture,
> RETA[AB] should be decoded as UNDEF if the pauth feature is not
> implemented.
>
> Fixes: 0ebbe9021254f ("target/arm: Convert BRA[AB]Z, BLR[AB]Z, RETA[AB] to decodetree")
> Signed-off-by: Solomon Tan <root@wjsota.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] target/arm: Make RETA[AB] UNDEF when pauth is not implemented
2025-06-16 17:15 [PATCH] target/arm: Make RETA[AB] UNDEF when pauth is not implemented Solomon Tan
2025-06-16 19:27 ` Alex Bennée
@ 2025-06-18 1:49 ` Richard Henderson
2025-06-30 14:41 ` Peter Maydell
2 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 2025-06-18 1:49 UTC (permalink / raw)
To: qemu-devel
On 6/16/25 10:15, Solomon Tan wrote:
> According to the Arm A-profile A64 Instruction Set Architecture,
> RETA[AB] should be decoded as UNDEF if the pauth feature is not
> implemented.
>
> Fixes: 0ebbe9021254f ("target/arm: Convert BRA[AB]Z, BLR[AB]Z, RETA[AB] to decodetree")
> Signed-off-by: Solomon Tan<root@wjsota.com>
> ---
> target/arm/tcg/translate-a64.c | 4 ++++
> 1 file changed, 4 insertions(+)
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
r~
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] target/arm: Make RETA[AB] UNDEF when pauth is not implemented
2025-06-16 17:15 [PATCH] target/arm: Make RETA[AB] UNDEF when pauth is not implemented Solomon Tan
2025-06-16 19:27 ` Alex Bennée
2025-06-18 1:49 ` Richard Henderson
@ 2025-06-30 14:41 ` Peter Maydell
2 siblings, 0 replies; 4+ messages in thread
From: Peter Maydell @ 2025-06-30 14:41 UTC (permalink / raw)
To: Solomon Tan; +Cc: qemu-arm, qemu-devel
On Mon, 16 Jun 2025 at 18:15, Solomon Tan <root@wjsota.com> wrote:
>
> According to the Arm A-profile A64 Instruction Set Architecture,
> RETA[AB] should be decoded as UNDEF if the pauth feature is not
> implemented.
>
> Fixes: 0ebbe9021254f ("target/arm: Convert BRA[AB]Z, BLR[AB]Z, RETA[AB] to decodetree")
> Signed-off-by: Solomon Tan <root@wjsota.com>
> ---
> target/arm/tcg/translate-a64.c | 4 ++++
> 1 file changed, 4 insertions(+)
Thanks for your patch! I've applied it to target-arm.next,
and it should get into upstream git within a week or so.
-- PMM
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-06-30 14:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-16 17:15 [PATCH] target/arm: Make RETA[AB] UNDEF when pauth is not implemented Solomon Tan
2025-06-16 19:27 ` Alex Bennée
2025-06-18 1:49 ` Richard Henderson
2025-06-30 14:41 ` Peter Maydell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).