diff mbox series

[2/2] xics: Add /* Reason */ comment to "->user_creatable = false" statements

Message ID 157045578962.865784.8551555523533955113.stgit@bahia.lan
State New
Headers show
Series xics, xive: Add some missing comments | expand

Commit Message

Greg Kurz Oct. 7, 2019, 1:43 p.m. UTC
Signed-off-by: Greg Kurz <groug@kaod.org>
---
 hw/intc/xics.c |    8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox series

Patch

diff --git a/hw/intc/xics.c b/hw/intc/xics.c
index 8d41df3103f9..b5ac408f7b74 100644
--- a/hw/intc/xics.c
+++ b/hw/intc/xics.c
@@ -369,6 +369,10 @@  static void icp_class_init(ObjectClass *klass, void *data)
 
     dc->realize = icp_realize;
     dc->unrealize = icp_unrealize;
+    /*
+     * Reason: part of XICS interrupt controller, needs to be wired up
+     * by icp_create().
+     */
     dc->user_creatable = false;
 }
 
@@ -690,6 +694,10 @@  static void ics_class_init(ObjectClass *klass, void *data)
     dc->props = ics_properties;
     dc->reset = ics_reset;
     dc->vmsd = &vmstate_ics;
+    /*
+     * Reason: part of XICS interrupt controller, needs to be wired up,
+     * e.g. by spapr_irq_init().
+     */
     dc->user_creatable = false;
 }