diff options
author | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-09 17:15:18 +0000 |
---|---|---|
committer | pbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162> | 2009-04-09 17:15:18 +0000 |
commit | 7ffab4d78cdc202fc4ef7f9cb6677756b5c8b3a1 (patch) | |
tree | 8cf9d674f6b40739ac7546db4867fa02694cac6a /hw/versatilepb.c | |
parent | 088ab16c6b04007e5ae34d57256286b0c6607685 (diff) |
Use qemu_ram_alloc.
Signed-off-by: Paul Brook <paul@codesourcery.com>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7052 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'hw/versatilepb.c')
-rw-r--r-- | hw/versatilepb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/hw/versatilepb.c b/hw/versatilepb.c index d80e2f2741..c018a06f8a 100644 --- a/hw/versatilepb.c +++ b/hw/versatilepb.c @@ -160,6 +160,7 @@ static void versatile_init(ram_addr_t ram_size, int vga_ram_size, int board_id) { CPUState *env; + ram_addr_t ram_offset; qemu_irq *pic; qemu_irq *sic; void *scsi_hba; @@ -176,9 +177,10 @@ static void versatile_init(ram_addr_t ram_size, int vga_ram_size, fprintf(stderr, "Unable to find CPU definition\n"); exit(1); } + ram_offset = qemu_ram_alloc(ram_size); /* ??? RAM should repeat to fill physical memory space. */ /* SDRAM at address zero. */ - cpu_register_physical_memory(0, ram_size, IO_MEM_RAM); + cpu_register_physical_memory(0, ram_size, ram_offset | IO_MEM_RAM); arm_sysctl_init(0x10000000, 0x41007004); pic = arm_pic_init_cpu(env); |