aboutsummaryrefslogtreecommitdiff
path: root/qom
diff options
context:
space:
mode:
authorAndreas Färber <afaerber@suse.de>2013-01-19 06:17:06 +0100
committerAndreas Färber <afaerber@suse.de>2013-02-16 14:50:56 +0100
commit4f65809994274989bdf51c8605bb974565cb1c9e (patch)
treeee20a352eec5072c3275772d7a59266fc4e83f46 /qom
parent453776e5746be23c66df65fadf12e115b7d2dadd (diff)
downloadqemu-4f65809994274989bdf51c8605bb974565cb1c9e.zip
qemu-4f65809994274989bdf51c8605bb974565cb1c9e.tar.gz
qemu-4f65809994274989bdf51c8605bb974565cb1c9e.tar.bz2
cpu: Prepare QOM realizefn
Overwrite the default implementation with a no-op, no longer attempting to call DeviceClass::init. Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'qom')
-rw-r--r--qom/cpu.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/qom/cpu.c b/qom/cpu.c
index 8fb538b..870e9ba 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;
}