diff mbox

[Qemu-devel] Fix segfault with ram_size > 4095M without kvm

Message ID 20100304212724.GH5860@hall.aurel32.net (mailing list archive)
State New, archived
Headers show

Commit Message

Aurelien Jarno March 4, 2010, 9:27 p.m. UTC
None
diff mbox

Patch

diff --git a/exec.c b/exec.c
index 8389c54..b0bb058 100644
--- a/exec.c
+++ b/exec.c
@@ -166,7 +166,7 @@  typedef struct PhysPageDesc {
  */
 #define L1_BITS (TARGET_VIRT_ADDR_SPACE_BITS - L2_BITS - TARGET_PAGE_BITS)
 #else
-#define L1_BITS (32 - L2_BITS - TARGET_PAGE_BITS)
+#define L1_BITS (TARGET_PHYS_ADDR_SPACE_BITS - L2_BITS - TARGET_PAGE_BITS)
 #endif
 
 #define L1_SIZE (1 << L1_BITS)