aboutsummaryrefslogtreecommitdiffstats
path: root/hw/realview.c
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2009-12-21 20:19:12 +0000
committerPaul Brook <paul@codesourcery.com>2009-12-21 20:19:12 +0000
commit21a88941686b3626aa7b98660b1e1fa88cb064ec (patch)
tree894ff71680174cdca50f0c8983e40faf84ebe366 /hw/realview.c
parent209bf9658a42a20756f2f0eb5afa1ecf099263f0 (diff)
ARM PBX-A9 memory map tweaks
Add core tile memeory to the RealView PBX-A9 board. Document the memeory maps that are known to work with the qemu bootloader. Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw/realview.c')
-rw-r--r--hw/realview.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/hw/realview.c b/hw/realview.c
index fd2d6be71..f786699a1 100644
--- a/hw/realview.c
+++ b/hw/realview.c
@@ -192,11 +192,19 @@ static void realview_init(ram_addr_t ram_size,
proc_id = 0x02000000;
}
+ if (is_pb && ram_size > 0x20000000) {
+ /* Core tile RAM. */
+ low_ram_size = ram_size - 0x20000000;
+ ram_size = 0x20000000;
+ ram_offset = qemu_ram_alloc(low_ram_size);
+ cpu_register_physical_memory(0x20000000, low_ram_size,
+ ram_offset | IO_MEM_RAM);
+ }
+
ram_offset = qemu_ram_alloc(ram_size);
low_ram_size = ram_size;
if (low_ram_size > 0x10000000)
low_ram_size = 0x10000000;
- /* ??? RAM should repeat to fill physical memory space. */
/* SDRAM at address zero. */
cpu_register_physical_memory(0, low_ram_size, ram_offset | IO_MEM_RAM);
if (is_pb) {
@@ -356,7 +364,7 @@ static void realview_init(ram_addr_t ram_size,
realview_binfo.initrd_filename = initrd_filename;
realview_binfo.nb_cpus = smp_cpus;
realview_binfo.board_id = realview_board_id[board_type];
- realview_binfo.loader_start = is_pb ? 0x70000000 : 0;
+ realview_binfo.loader_start = (board_type == BOARD_PB_A8 ? 0x70000000 : 0);
arm_load_kernel(first_cpu, &realview_binfo);
}