diff options
author | Andreas Färber <afaerber@suse.de> | 2013-01-19 06:17:06 +0100 |
---|---|---|
committer | Andreas Färber <afaerber@suse.de> | 2013-02-16 14:50:56 +0100 |
commit | 4f65809994274989bdf51c8605bb974565cb1c9e (patch) | |
tree | ee20a352eec5072c3275772d7a59266fc4e83f46 /qom | |
parent | 453776e5746be23c66df65fadf12e115b7d2dadd (diff) | |
download | qemu-4f65809994274989bdf51c8605bb974565cb1c9e.tar.gz qemu-4f65809994274989bdf51c8605bb974565cb1c9e.tar.bz2 qemu-4f65809994274989bdf51c8605bb974565cb1c9e.zip |
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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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; } |