From 4f65809994274989bdf51c8605bb974565cb1c9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sat, 19 Jan 2013 06:17:06 +0100 Subject: cpu: Prepare QOM realizefn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 file changed, 5 insertions(+) (limited to 'qom') diff --git a/qom/cpu.c b/qom/cpu.c index 8fb538bf3b..870e9baad9 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -46,6 +46,10 @@ static ObjectClass *cpu_common_class_by_name(const char *cpu_model) return NULL; } +static void cpu_common_realizefn(DeviceState *dev, Error **errp) +{ +} + static void cpu_class_init(ObjectClass *klass, void *data) { DeviceClass *dc = DEVICE_CLASS(klass); @@ -53,6 +57,7 @@ static void cpu_class_init(ObjectClass *klass, void *data) k->class_by_name = cpu_common_class_by_name; k->reset = cpu_common_reset; + dc->realize = cpu_common_realizefn; dc->no_user = 1; } -- cgit v1.2.3