mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-02-18 10:22:14 -07:00
target/arm/ptw: replace target_ulong with int64_t
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>
This commit is contained in:
parent
7d5df02e7a
commit
03bc7858fd
1 changed files with 2 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue