diff options
author | Paul Brook <paul@codesourcery.com> | 2009-05-19 16:05:00 +0100 |
---|---|---|
committer | Paul Brook <paul@codesourcery.com> | 2009-05-19 16:05:00 +0100 |
commit | 8a637d444387bbdb60eff803d321244487521c86 (patch) | |
tree | 529106875126fffeb7b0acb9e173cd6f5d0b1ec1 /hw | |
parent | 909b69cf52f5267a49909c0ac1ece6c09c0d62b5 (diff) | |
download | hqemu-8a637d444387bbdb60eff803d321244487521c86.zip hqemu-8a637d444387bbdb60eff803d321244487521c86.tar.gz |
Disable >4G ram support on 32-bit targets
If the target only has a 32-bit physical address space then
the code to map >4G ram breaks horribly, and causes compiler warnings.
Signed-off-by: Paul Brook <paul@codesourcery.com>
Diffstat (limited to 'hw')
-rw-r--r-- | hw/pc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -908,10 +908,14 @@ static void pc_init1(ram_addr_t ram_size, /* above 4giga memory allocation */ if (above_4g_mem_size > 0) { +#if TARGET_PHYS_ADDR_BITS == 32 + hw_error("To much RAM for 32-bit physical address"); +#else ram_addr = qemu_ram_alloc(above_4g_mem_size); cpu_register_physical_memory(0x100000000ULL, above_4g_mem_size, ram_addr); +#endif } |