target/arm: Replace target_ulong -> vaddr in guarded_page_br()
Following commit 15500df3b3b ("target/arm/tcg/translate.h: replace target_ulong with vaddr") change, adapt guarded_page_br().
---
I know this expands to uint64_t on Aarch64, but vaddr for $pc seems clearer, since this is the type used by callees, i.e. probe_access_full().
--- target/arm/tcg/helper-a64-defs.h | 2 +- target/arm/tcg/helper-a64.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
target/arm/tcg/helper-a64-defs.h +1 -1
@@ -131,7 +131,7 @@ DEF_HELPER_4(cpyfm, void, env, i32, i32, i32) DEF_HELPER_4(cpyfe, void, env, i32, i32, i32) DEF_HELPER_FLAGS_1(guarded_page_check, TCG_CALL_NO_WG, void, env) -DEF_HELPER_FLAGS_2(guarded_page_br, TCG_CALL_NO_RWG, void, env, tl) +DEF_HELPER_FLAGS_2(guarded_page_br, TCG_CALL_NO_RWG, void, env, vaddr) DEF_HELPER_FLAGS_5(gvec_fdiv_h, TCG_CALL_NO_RWG, void, ptr, ptr, ptr, fpst, i32)DEF_HELPER_FLAGS_5 (gvec_fdiv_s,TCG_CALL_NO_RWG , void, ptr, ptr, ptr, fpst, i32)
target/arm/tcg/helper-a64.c +2 -2
@@ -1735,7 +1735,7 @@ void HELPER(cpyfe)(CPUARMState *env, uint32_t syndrome, uint32_t wdesc,do_cpye (env, syndrome, wdesc, rdesc, false,GETPC ()); } -static bool is_guarded_page (CPUARMState *env,target_ulong addr,uintptr_t ra) +static bool is_guarded_page (CPUARMState *env,vaddr addr,uintptr_t ra) {#ifdef CONFIG_USER_ONLY return page_get_flags (addr) &PAGE_BTI ;
@@ -1765,7 +1765,7 @@ void HELPER(guarded_page_check)(CPUARMState *env) } } -void HELPER (guarded_page_br )(CPUARMState *env,target_ulong pc) +void HELPER (guarded_page_br )(CPUARMState *env,vaddr pc) {/* * We have already checked for branch via x16 and x17.
Signature · 1 line
2.53.0
Pierrick Bouvier
Reviewed-byQuoted 4 lines · Philippe Mathieu-Daudé
Following commit
15500df3b3b("target/arm/tcg/translate.h: replacetarget_ulongwith vaddr") change, adaptguarded_page_br().Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Quoted 9 lines
---
I know this expands touint64_ton Aarch64, but vaddr for $pc seems clearer, since this is the type used by callees, i.e.probe_access_full().--- target/arm/tcg/helper-a64-defs.h | 2 +- target/arm/tcg/helper-a64.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
Richard Henderson
Reviewed-byQuoted 4 lines · Philippe Mathieu-Daudé
Following commit
15500df3b3b("target/arm/tcg/translate.h: replacetarget_ulongwith vaddr") change, adaptguarded_page_br().Signed-off-by Philippe Mathieu-Daudé<[email protected]>
Quoted 8 lines
---
I know this expands touint64_ton Aarch64, but vaddr for $pc seems clearer, since this is the type used by callees, i.e.probe_access_full().--- target/arm/tcg/helper-a64-defs.h | 2 +- target/arm/tcg/helper-a64.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
r~
Peter Maydell
AppliedQuoted 5 lines · Philippe Mathieu-Daudé
Following commit
15500df3b3b("target/arm/tcg/translate.h: replacetarget_ulongwith vaddr") change, adaptguarded_page_br().Signed-off-by Philippe Mathieu-Daudé <[email protected]>
Quoted 8 lines
---
I know this expands touint64_ton Aarch64, but vaddr for $pc seems clearer, since this is the type used by callees, i.e.probe_access_full().--- target/arm/tcg/helper-a64-defs.h | 2 +- target/arm/tcg/helper-a64.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)
Applied to target-arm.next for 11.1, thanks.
-- PMM