From patchwork Sun Jan 20 07:22:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [RFC,qom-cpu,v2,01/28] cpu: Prepare QOM realizefn Date: Sat, 19 Jan 2013 21:22:24 -0000 From: =?utf-8?q?Andreas_F=C3=A4rber_=3Cafaerber=40suse=2Ede=3E?= X-Patchwork-Id: 213916 Message-Id: <1358666571-1737-2-git-send-email-afaerber@suse.de> To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= Overwrite the default implementation with a no-op, no longer attempting to call DeviceClass::init. Signed-off-by: Andreas Färber --- qom/cpu.c | 5 +++++ 1 Datei geändert, 5 Zeilen hinzugefügt(+) diff --git a/qom/cpu.c b/qom/cpu.c index 49e5134..cbc2d01 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -34,12 +34,17 @@ static void cpu_common_reset(CPUState *cpu) { } +static void cpu_common_realizefn(DeviceState *dev, Error **errp) +{ +} + static void cpu_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); CPUClass *k = CPU_CLASS(klass); k->reset = cpu_common_reset; + dc->realize = cpu_common_realizefn; dc->no_user = 1; }