aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIzik Eidus <izike@qumranet.com>2007-08-21 12:45:03 +0300
committerAvi Kivity <avi@qumranet.com>2007-08-21 17:09:33 +0300
commit55a035a69544289efdba39b8ac3aec9f8686cd73 (patch)
tree94b4fbc2ebf160d1444e1262c2513e34e6c85e07
parent1ad249008595c559c50c0c4ffffc58028b59d008 (diff)
Increase TARGET_PHYS_ADDR_SPACE_BITS for large memory guestskvm-36
-rw-r--r--exec.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/exec.c b/exec.c
index 9fd24b752..2883b076a 100644
--- a/exec.c
+++ b/exec.c
@@ -67,9 +67,13 @@
#define TARGET_PHYS_ADDR_SPACE_BITS 41
#elif defined(TARGET_PPC64)
#define TARGET_PHYS_ADDR_SPACE_BITS 42
-#else
+#elif USE_KQEMU
/* Note: for compatibility with kqemu, we use 32 bits for x86_64 */
#define TARGET_PHYS_ADDR_SPACE_BITS 32
+#elif TARGET_X86_64
+#define TARGET_PHYS_ADDR_SPACE_BITS 42
+#else
+#define TARGET_PHYS_ADDR_SPACE_BITS 32
#endif
#ifdef USE_KVM