exec: Make memory_region_section_get_iotlb use section AS
authorEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Thu, 7 Nov 2013 17:43:28 +0000 (18:43 +0100)
committerEdgar E. Iglesias <edgar.iglesias@xilinx.com>
Tue, 11 Feb 2014 12:56:23 +0000 (22:56 +1000)
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
exec.c

diff --git a/exec.c b/exec.c
index f2e66f3f32f9d0ef8345157463be5e5bd7bc5cdd..122e6e5f11bc1b7a0bb1f13b3a2843fab159d25f 100644 (file)
--- a/exec.c
+++ b/exec.c
@@ -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;
     }