projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bd7466
)
xen_machine_pv: Use cpu_x86_init() to obtain X86CPU
author
Andreas Färber
<afaerber@suse.de>
Tue, 22 May 2012 23:51:57 +0000
(
01:51
+0200)
committer
Andreas Färber
<afaerber@suse.de>
Sun, 10 Jun 2012 22:23:04 +0000
(
00:23
+0200)
Needed for moving halted field to CPUState.
Signed-off-by: Andreas Färber <afaerber@suse.de>
Tested-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
hw/xen_machine_pv.c
patch
|
blob
|
history
diff --git
a/hw/xen_machine_pv.c
b/hw/xen_machine_pv.c
index 7eee770eea1100c06b30c65c7662669a74d0262e..4b72aa75576f1620477628235927be9a5ba1ba75 100644
(file)
--- a/
hw/xen_machine_pv.c
+++ b/
hw/xen_machine_pv.c
@@
-36,6
+36,7
@@
static void xen_init_pv(ram_addr_t ram_size,
const char *initrd_filename,
const char *cpu_model)
{
+ X86CPU *cpu;
CPUX86State *env;
DriveInfo *dinfo;
int i;
@@
-48,7
+49,8
@@
static void xen_init_pv(ram_addr_t ram_size,
cpu_model = "qemu32";
#endif
}
- env = cpu_init(cpu_model);
+ cpu = cpu_x86_init(cpu_model);
+ env = &cpu->env;
env->halted = 1;
/* Initialize backend core & drivers */