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(-)