From: aurel32 Date: Tue, 13 Jan 2009 19:08:10 +0000 (+0000) Subject: target-ppc: define max amount of memory for G3 beige X-Git-Tag: xen-3.4.0-rc2~71^2^2~51 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=6b4079f843a3cb0b63d872f60dd60058c47696b7;p=qemu-xen-4.1-testing.git target-ppc: define max amount of memory for G3 beige Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6283 c046a42c-6fe2-441c-8c8c-71466251a162 --- diff --git a/hw/ppc_oldworld.c b/hw/ppc_oldworld.c index df999c50c..7ae555db7 100644 --- a/hw/ppc_oldworld.c +++ b/hw/ppc_oldworld.c @@ -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);