]> Git Repo - qemu.git/commitdiff
target-ppc: define max amount of memory for G3 beige
authoraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 13 Jan 2009 19:08:10 +0000 (19:08 +0000)
committeraurel32 <aurel32@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 13 Jan 2009 19:08:10 +0000 (19:08 +0000)
Signed-off-by: Aurelien Jarno <[email protected]>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6283 c046a42c-6fe2-441c-8c8c-71466251a162

hw/ppc_oldworld.c

index df999c50ca97401c1675cd2edd6ac93c3bfc98b4..7ae555db79781a7182793cd3732bdc00926c4e00 100644 (file)
@@ -159,6 +159,13 @@ static void ppc_heathrow_init (ram_addr_t ram_size, int vga_ram_size,
     }
 
     /* allocate RAM */
+    if (ram_size > (2047 << 20)) {
+        fprintf(stderr,
+                "qemu: Too much memory for this machine: %d MB, maximum 2047 MB\n",
+                ((unsigned int)ram_size / (1 << 20)));
+        exit(1);
+    }
+
     ram_offset = qemu_ram_alloc(ram_size);
     cpu_register_physical_memory(0, ram_size, ram_offset);
 
This page took 0.028957 seconds and 4 git commands to generate.