]> Git Repo - qemu.git/commitdiff
hw/arm/virt: Put GIC register banks on 64K boundaries
authorPeter Maydell <[email protected]>
Thu, 24 Apr 2014 17:54:42 +0000 (18:54 +0100)
committerPeter Maydell <[email protected]>
Thu, 1 May 2014 14:25:52 +0000 (15:25 +0100)
For an AArch64 CPU which supports 64K pages, having the GIC
register banks at 4K offsets is potentially awkward. Move
them out to being at 64K offsets. (This is harmless for
AArch32 CPUs and for AArch64 CPUs with 4K pages, so it is simpler
to use the same offsets everywhere than to try to use 64K offsets
only for AArch64 host CPUs.)

Signed-off-by: Peter Maydell <[email protected]>
Message-id: 1398362083[email protected]

hw/arm/virt.c

index ecff256daceaec64c070fb1a0387e2d0cc72b5bf..9c4d337b1b2208e89e1923e093ae92657c466594 100644 (file)
@@ -96,10 +96,10 @@ typedef struct VirtBoardInfo {
 static const MemMapEntry a15memmap[] = {
     /* Space up to 0x8000000 is reserved for a boot ROM */
     [VIRT_FLASH] = { 0, 0x8000000 },
-    [VIRT_CPUPERIPHS] = { 0x8000000, 0x8000 },
+    [VIRT_CPUPERIPHS] = { 0x8000000, 0x20000 },
     /* GIC distributor and CPU interfaces sit inside the CPU peripheral space */
-    [VIRT_GIC_DIST] = { 0x8001000, 0x1000 },
-    [VIRT_GIC_CPU] = { 0x8002000, 0x1000 },
+    [VIRT_GIC_DIST] = { 0x8000000, 0x10000 },
+    [VIRT_GIC_CPU] = { 0x8010000, 0x10000 },
     [VIRT_UART] = { 0x9000000, 0x1000 },
     [VIRT_MMIO] = { 0xa000000, 0x200 },
     /* ...repeating for a total of NUM_VIRTIO_TRANSPORTS, each of that size */
This page took 0.024706 seconds and 4 git commands to generate.