Revision 14a10fc3 target-i386/cpu.c
b/target-i386/cpu.c | ||
---|---|---|
2333 | 2333 |
|
2334 | 2334 |
static void x86_cpu_realizefn(DeviceState *dev, Error **errp) |
2335 | 2335 |
{ |
2336 |
CPUState *cs = CPU(dev); |
|
2336 | 2337 |
X86CPU *cpu = X86_CPU(dev); |
2337 | 2338 |
X86CPUClass *xcc = X86_CPU_GET_CLASS(dev); |
2338 | 2339 |
CPUX86State *env = &cpu->env; |
... | ... | |
2387 | 2388 |
#endif |
2388 | 2389 |
|
2389 | 2390 |
mce_init(cpu); |
2391 |
qemu_init_vcpu(cs); |
|
2390 | 2392 |
|
2391 | 2393 |
x86_cpu_apic_realize(cpu, &local_err); |
2392 | 2394 |
if (local_err != NULL) { |
2393 | 2395 |
goto out; |
2394 | 2396 |
} |
2395 |
cpu_reset(CPU(cpu));
|
|
2397 |
cpu_reset(cs);
|
|
2396 | 2398 |
|
2397 | 2399 |
xcc->parent_realize(dev, &local_err); |
2398 | 2400 |
out: |
Also available in: Unified diff