]> xenbits.xen.org Git - xenclient/ioemu.git/commitdiff
Fixup dummy cpu setup.
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 23 Mar 2009 16:39:29 +0000 (16:39 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 23 Mar 2009 16:39:29 +0000 (16:39 +0000)
Passing NULL to cpu_init() doesn't work in upstream qemu.
Also make sure the dummy cpu is in halted mode.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/xen_machine_pv.c

index 624d8dd2fc8b00f42d736b5510f70e524bfe46e9..df28be9bdeb30561c21a8ac4fca89c89904e98b5 100644 (file)
@@ -51,7 +51,15 @@ static void xen_init_pv(ram_addr_t ram_size, int vga_ram_size,
 #endif
 
     /* Initialize a dummy CPU */
-    env = cpu_init(NULL);
+    if (cpu_model == NULL) {
+#ifdef TARGET_X86_64
+        cpu_model = "qemu64";
+#else
+        cpu_model = "qemu32";
+#endif
+    }
+    env = cpu_init(cpu_model);
+    env->halted = 1;
 
     /* Initialize backend core & drivers */
     if (-1 == xen_be_init()) {