mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -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
6
exec.c
6
exec.c
|
@ -3529,7 +3529,8 @@ flatview_extend_translation(FlatView *fv, hwaddr addr,
|
|||
void *address_space_map(AddressSpace *as,
|
||||
hwaddr addr,
|
||||
hwaddr *plen,
|
||||
bool is_write)
|
||||
bool is_write,
|
||||
MemTxAttrs attrs)
|
||||
{
|
||||
hwaddr len = *plen;
|
||||
hwaddr l, xlat;
|
||||
|
@ -3616,7 +3617,8 @@ void *cpu_physical_memory_map(hwaddr addr,
|
|||
hwaddr *plen,
|
||||
int is_write)
|
||||
{
|
||||
return address_space_map(&address_space_memory, addr, plen, is_write);
|
||||
return address_space_map(&address_space_memory, addr, plen, is_write,
|
||||
MEMTXATTRS_UNSPECIFIED);
|
||||
}
|
||||
|
||||
void cpu_physical_memory_unmap(void *buffer, hwaddr len,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue