|
@@ -92,12 +92,11 @@ static void machine_hppa_init(MachineState *machine)
|
|
g_free(name);
|
|
g_free(name);
|
|
}
|
|
}
|
|
|
|
|
|
- /* Limit main memory. */
|
|
|
|
- if (ram_size > FIRMWARE_START) {
|
|
|
|
- machine->ram_size = ram_size = FIRMWARE_START;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/* Main memory region. */
|
|
/* Main memory region. */
|
|
|
|
+ if (machine->ram_size > 3 * GiB) {
|
|
|
|
+ error_report("RAM size is currently restricted to 3GB");
|
|
|
|
+ exit(EXIT_FAILURE);
|
|
|
|
+ }
|
|
ram_region = g_new(MemoryRegion, 1);
|
|
ram_region = g_new(MemoryRegion, 1);
|
|
memory_region_allocate_system_memory(ram_region, OBJECT(machine),
|
|
memory_region_allocate_system_memory(ram_region, OBJECT(machine),
|
|
"ram", ram_size);
|
|
"ram", ram_size);
|