From c643bed99fcde661b034623722004562b7953669 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Mon, 27 May 2013 03:23:24 +0200 Subject: cpu: Change qemu_init_vcpu() argument to CPUState MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows to move the call into CPUState's realizefn. Therefore move the stub into libqemustub.a. Reviewed-by: Richard Henderson Signed-off-by: Andreas Färber --- qom/cpu.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qom') diff --git a/qom/cpu.c b/qom/cpu.c index 4da63321d7..ee8f632ecb 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -209,6 +209,8 @@ static void cpu_common_realizefn(DeviceState *dev, Error **errp) { CPUState *cpu = CPU(dev); + qemu_init_vcpu(cpu); + if (dev->hotplugged) { cpu_synchronize_post_init(cpu); notifier_list_notify(&cpu_added_notifiers, dev); -- cgit v1.2.1