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 2013-11-07 18:43:28 +01:00
parent 3be91e862a
commit 1b3fb98ff0
1 changed files with 1 additions and 1 deletions

2
exec.c
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;
}