target/i386/arch_memory_mapping: Use address_space_memory_is_io()
Since all functions have an address space argument, it is trivial to replace cpu_physical_memory_is_io() by address_space_memory_is_io(). Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20251002084203.63899-4-philmd@linaro.org>
This commit is contained in:
parent
839976e9da
commit
6ffaa92196
1 changed files with 5 additions and 5 deletions
|
|
@ -35,7 +35,7 @@ static void walk_pte(MemoryMappingList *list, AddressSpace *as,
|
|||
}
|
||||
|
||||
start_paddr = (pte & ~0xfff) & ~(0x1ULL << 63);
|
||||
if (cpu_physical_memory_is_io(start_paddr)) {
|
||||
if (address_space_is_io(as, start_paddr)) {
|
||||
/* I/O region */
|
||||
continue;
|
||||
}
|
||||
|
|
@ -65,7 +65,7 @@ static void walk_pte2(MemoryMappingList *list, AddressSpace *as,
|
|||
}
|
||||
|
||||
start_paddr = pte & ~0xfff;
|
||||
if (cpu_physical_memory_is_io(start_paddr)) {
|
||||
if (address_space_is_io(as, start_paddr)) {
|
||||
/* I/O region */
|
||||
continue;
|
||||
}
|
||||
|
|
@ -100,7 +100,7 @@ static void walk_pde(MemoryMappingList *list, AddressSpace *as,
|
|||
if (pde & PG_PSE_MASK) {
|
||||
/* 2 MB page */
|
||||
start_paddr = (pde & ~0x1fffff) & ~(0x1ULL << 63);
|
||||
if (cpu_physical_memory_is_io(start_paddr)) {
|
||||
if (address_space_is_io(as, start_paddr)) {
|
||||
/* I/O region */
|
||||
continue;
|
||||
}
|
||||
|
|
@ -142,7 +142,7 @@ static void walk_pde2(MemoryMappingList *list, AddressSpace *as,
|
|||
*/
|
||||
high_paddr = ((hwaddr)(pde & 0x1fe000) << 19);
|
||||
start_paddr = (pde & ~0x3fffff) | high_paddr;
|
||||
if (cpu_physical_memory_is_io(start_paddr)) {
|
||||
if (address_space_is_io(as, start_paddr)) {
|
||||
/* I/O region */
|
||||
continue;
|
||||
}
|
||||
|
|
@ -203,7 +203,7 @@ static void walk_pdpe(MemoryMappingList *list, AddressSpace *as,
|
|||
if (pdpe & PG_PSE_MASK) {
|
||||
/* 1 GB page */
|
||||
start_paddr = (pdpe & ~0x3fffffff) & ~(0x1ULL << 63);
|
||||
if (cpu_physical_memory_is_io(start_paddr)) {
|
||||
if (address_space_is_io(as, start_paddr)) {
|
||||
/* I/O region */
|
||||
continue;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue