[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 39/58] target/arm/ptw: replace target_ulong with int64_t
From: |
Peter Maydell |
Subject: |
[PULL 39/58] target/arm/ptw: replace target_ulong with int64_t |
Date: |
Thu, 15 May 2025 11:25:27 +0100 |
From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
sextract64 returns a signed value.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Message-id: 20250512180502.2395029-30-pierrick.bouvier@linaro.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
target/arm/ptw.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/arm/ptw.c b/target/arm/ptw.c
index 89979c07e5a..68ec3f5e755 100644
--- a/target/arm/ptw.c
+++ b/target/arm/ptw.c
@@ -1660,7 +1660,7 @@ static bool get_phys_addr_lpae(CPUARMState *env,
S1Translate *ptw,
uint64_t ttbr;
hwaddr descaddr, indexmask, indexmask_grainsize;
uint32_t tableattrs;
- target_ulong page_size;
+ uint64_t page_size;
uint64_t attrs;
int32_t stride;
int addrsize, inputsize, outputsize;
@@ -1733,7 +1733,7 @@ static bool get_phys_addr_lpae(CPUARMState *env,
S1Translate *ptw,
* validation to do here.
*/
if (inputsize < addrsize) {
- target_ulong top_bits = sextract64(address, inputsize,
+ uint64_t top_bits = sextract64(address, inputsize,
addrsize - inputsize);
if (-top_bits != param.select) {
/* The gap between the two regions is a Translation fault */
--
2.43.0
- [PULL 26/58] target/arm/debug_helper: only include common helpers, (continued)
- [PULL 26/58] target/arm/debug_helper: only include common helpers, Peter Maydell, 2025/05/15
- [PULL 29/58] target/arm/helper: restrict include to common helpers, Peter Maydell, 2025/05/15
- [PULL 35/58] target/arm/arch_dump: remove TARGET_AARCH64 conditionals, Peter Maydell, 2025/05/15
- [PULL 37/58] target/arm/arm-powerctl: compile file once (system), Peter Maydell, 2025/05/15
- [PULL 42/58] target/arm/meson: accelerator files are not needed in user mode, Peter Maydell, 2025/05/15
- [PULL 50/58] target/arm/tcg/crypto_helper: compile file once, Peter Maydell, 2025/05/15
- [PULL 53/58] target/arm/tcg/neon_helper: compile file twice (system, user), Peter Maydell, 2025/05/15
- [PULL 46/58] target/arm/machine: move cpu_post_load kvm bits to kvm_arm_cpu_post_load function, Peter Maydell, 2025/05/15
- [PULL 36/58] target/arm/arch_dump: compile file once (system), Peter Maydell, 2025/05/15
- [PULL 40/58] target/arm/ptw: replace TARGET_AARCH64 by CONFIG_ATOMIC64 from arm_casq_ptw, Peter Maydell, 2025/05/15
- [PULL 39/58] target/arm/ptw: replace target_ulong with int64_t,
Peter Maydell <=
- [PULL 48/58] target/arm/machine: compile file once (system), Peter Maydell, 2025/05/15
- [PULL 57/58] target/arm/tcg/arith_helper: compile file once, Peter Maydell, 2025/05/15
- [PULL 16/58] target/arm/cpu: move arm_cpu_kvm_set_irq to kvm.c, Peter Maydell, 2025/05/15
- [PULL 34/58] target/arm/vfp_fpscr: compile file twice (user, system), Peter Maydell, 2025/05/15
- [PULL 33/58] target/arm/helper: compile file twice (user, system), Peter Maydell, 2025/05/15
- [PULL 31/58] target/arm/helper: expose aarch64 cpu registration, Peter Maydell, 2025/05/15
- [PULL 41/58] target/arm/ptw: compile file once (system), Peter Maydell, 2025/05/15
- [PULL 43/58] target/arm/kvm-stub: compile file once (system), Peter Maydell, 2025/05/15
- [PULL 44/58] target/arm/machine: reduce migration include to avoid target specific definitions, Peter Maydell, 2025/05/15
- [PULL 45/58] target/arm/machine: remove TARGET_AARCH64 from migration state, Peter Maydell, 2025/05/15