mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
Make address_space_map() take a MemTxAttrs argument
As part of plumbing MemTxAttrs down to the IOMMU translate method, add MemTxAttrs as an argument to address_space_map(). Its callers either have an attrs value to hand, or don't care and can use MEMTXATTRS_UNSPECIFIED. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20180521140402.23318-5-peter.maydell@linaro.org
This commit is contained in:
parent
bc6b1cec84
commit
f26404fbee
4 changed files with 10 additions and 5 deletions
|
@ -431,7 +431,8 @@ const ppc_hash_pte64_t *ppc_hash64_map_hptes(PowerPCCPU *cpu,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
hptes = address_space_map(CPU(cpu)->as, base + pte_offset, &plen, false);
|
||||
hptes = address_space_map(CPU(cpu)->as, base + pte_offset, &plen, false,
|
||||
MEMTXATTRS_UNSPECIFIED);
|
||||
if (plen < (n * HASH_PTE_SIZE_64)) {
|
||||
hw_error("%s: Unable to map all requested HPTEs\n", __func__);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue