exec: Make memory_region_section_get_iotlb use section AS

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
This commit is contained in:
Edgar E. Iglesias
2014-02-11 22:56:23 +10:00
parent 3be91e862a
commit 1b3fb98ff0
+1 -1
View File
@@ -796,7 +796,7 @@ hwaddr memory_region_section_get_iotlb(CPUArchState *env,
iotlb |= PHYS_SECTION_ROM;
}
} else {
iotlb = section - address_space_memory.dispatch->map.sections;
iotlb = section - section->address_space->dispatch->map.sections;
iotlb += xlat;
}