[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-commits] [COMMIT 8a637d4] Disable >4G ram support on 32-bit target
From: |
Anthony Liguori |
Subject: |
[Qemu-commits] [COMMIT 8a637d4] Disable >4G ram support on 32-bit targets |
Date: |
Tue, 19 May 2009 15:09:29 -0000 |
From: Paul Brook <address@hidden>
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 <address@hidden>
diff --git a/hw/pc.c b/hw/pc.c
index 826cb9d..901489a 100644
--- a/hw/pc.c
+++ b/hw/pc.c
@@ -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
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-commits] [COMMIT 8a637d4] Disable >4G ram support on 32-bit targets,
Anthony Liguori <=