Fix physical address truncation on 32-bit systems with addressing extensions (#2139)

* use hwaddr for paddrs

* Fix the truncation for memory hooks as well

* Add LPAE regression test


Co-authored-by: Takacs, Philipp <philipp.takacs@iosb.fraunhofer.de>
This commit is contained in:
ExhoAR22
2025-04-01 05:53:18 +03:00
committed by GitHub
parent 820a18bb90
commit bc73cb232d
4 changed files with 46 additions and 4 deletions

View File

@@ -112,7 +112,7 @@ typedef struct CPUTLBEntry {
target_ulong addr_read;
target_ulong addr_write;
target_ulong addr_code;
target_ulong paddr;
hwaddr paddr;
/* Addend to virtual address to get host address. IO accesses
use the corresponding iotlb value. */
uintptr_t addend;