aboutsummaryrefslogtreecommitdiff
path: root/qom/cpu.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2013-11-28 17:26:56 +0100
committerAndreas Färber <afaerber@suse.de>2013-12-23 00:27:22 +0100
commitffa957148698eec9cfdaf6e0c1b43cda8828cd61 (patch)
tree79318a7716cf51ed50c2db337c81b39795b1463a /qom/cpu.c
parent837d37167dc446af8a91189108b363c04609e296 (diff)
downloadqemu-ffa957148698eec9cfdaf6e0c1b43cda8828cd61.zip
qemu-ffa957148698eec9cfdaf6e0c1b43cda8828cd61.tar.gz
qemu-ffa957148698eec9cfdaf6e0c1b43cda8828cd61.tar.bz2
cpu: Document why cannot_instantiate_with_device_add_yet
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Andreas Färber <afaerber@suse.de>
Diffstat (limited to 'qom/cpu.c')
-rw-r--r--qom/cpu.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/qom/cpu.c b/qom/cpu.c
index 09c15e6..9d62479 100644
--- a/qom/cpu.c
+++ b/qom/cpu.c
@@ -254,7 +254,11 @@ static void cpu_class_init(ObjectClass *klass, void *data)
k->gdb_read_register = cpu_common_gdb_read_register;
k->gdb_write_register = cpu_common_gdb_write_register;
dc->realize = cpu_common_realizefn;
- dc->cannot_instantiate_with_device_add_yet = true; /* FIXME explain why */
+ /*
+ * Reason: CPUs still need special care by board code: wiring up
+ * IRQs, adding reset handlers, halting non-first CPUs, ...
+ */
+ dc->cannot_instantiate_with_device_add_yet = true;
}
static const TypeInfo cpu_type_info = {