qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] target/arm: Fix BTI versus CF_PCREL


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] target/arm: Fix BTI versus CF_PCREL
Date: Tue, 30 Jul 2024 09:24:14 +0200
User-agent: Mozilla Thunderbird

On 30/7/24 03:39, Richard Henderson wrote:
With pcrel, we cannot check the guarded page bit at translation
time, as different mappings of the same physical page may or may
not have the GP bit set.

Instead, add a couple of helpers to check the page at runtime,
after all other filters that might obviate the need for the check.

The set_btype_for_br call must be moved after the gen_a64_set_pc
call to ensure the current pc can still be computed.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
  target/arm/tcg/helper-a64.h    |  3 ++
  target/arm/tcg/translate.h     |  2 --
  target/arm/tcg/helper-a64.c    | 38 ++++++++++++++++++++
  target/arm/tcg/translate-a64.c | 64 ++++++++--------------------------
  4 files changed, 55 insertions(+), 52 deletions(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]