From 777170946fc66120ec645699982ca24a8df95ead Mon Sep 17 00:00:00 2001 From: "Edgar E. Iglesias" Date: Thu, 7 Nov 2013 19:55:56 +0100 Subject: exec: Make iotlb_to_region input an AS Reviewed-by: Peter Maydell Signed-off-by: Edgar E. Iglesias --- exec.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'exec.c') diff --git a/exec.c b/exec.c index 05ad67d3fd..f4c987a862 100644 --- a/exec.c +++ b/exec.c @@ -1746,10 +1746,9 @@ static uint16_t dummy_section(PhysPageMap *map, MemoryRegion *mr) return phys_section_add(map, §ion); } -MemoryRegion *iotlb_to_region(hwaddr index) +MemoryRegion *iotlb_to_region(AddressSpace *as, hwaddr index) { - return address_space_memory.dispatch->map.sections[ - index & ~TARGET_PAGE_MASK].mr; + return as->dispatch->map.sections[index & ~TARGET_PAGE_MASK].mr; } static void io_mem_init(void) -- cgit v1.2.3