Commit 6b4079f843a3cb0b63d872f60dd60058c47696b7
1 parent
8a901def
target-ppc: define max amount of memory for G3 beige
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6283 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
7 additions
and
0 deletions
hw/ppc_oldworld.c
... | ... | @@ -159,6 +159,13 @@ static void ppc_heathrow_init (ram_addr_t ram_size, int vga_ram_size, |
159 | 159 | } |
160 | 160 | |
161 | 161 | /* allocate RAM */ |
162 | + if (ram_size > (2047 << 20)) { | |
163 | + fprintf(stderr, | |
164 | + "qemu: Too much memory for this machine: %d MB, maximum 2047 MB\n", | |
165 | + ((unsigned int)ram_size / (1 << 20))); | |
166 | + exit(1); | |
167 | + } | |
168 | + | |
162 | 169 | ram_offset = qemu_ram_alloc(ram_size); |
163 | 170 | cpu_register_physical_memory(0, ram_size, ram_offset); |
164 | 171 | ... | ... |