qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 7/7] Revert "don't allocate ram before accel starts"


From: Glauber Costa
Subject: [Qemu-devel] [PATCH 7/7] Revert "don't allocate ram before accel starts"
Date: Mon, 13 Oct 2008 22:51:48 -0200

This reverts commit 369b6634b36d267480a064ab038948f5b44e8c9f.
---
 vl.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/vl.c b/vl.c
index f5503bb..ede259f 100644
--- a/vl.c
+++ b/vl.c
@@ -9050,6 +9050,12 @@ int main(int argc, char **argv)
         phys_ram_size += ram_size;
     }
 
+    phys_ram_base = qemu_vmalloc(phys_ram_size);
+    if (!phys_ram_base) {
+        fprintf(stderr, "Could not allocate physical memory\n");
+        exit(1);
+    }
+
     /* init the dynamic translator */
     cpu_exec_init_all(tb_size * 1024 * 1024);
 
@@ -9058,11 +9064,6 @@ int main(int argc, char **argv)
            exit(1);
     }
 
-    phys_ram_base = qemu_vmalloc(phys_ram_size);
-    if (!phys_ram_base) {
-        fprintf(stderr, "Could not allocate physical memory\n");
-        exit(1);
-    }
 
     bdrv_init();
 
-- 
1.5.5.1





reply via email to

[Prev in Thread] Current Thread [Next in Thread]