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

Greg Kurz posted 2 patches 40 weeks ago

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

Posted by Greg Kurz 40 weeks ago
Signed-off-by: Greg Kurz <groug@kaod.org>
---
 hw/intc/xics.c |    8 ++++++++
 1 file changed, 8 insertions(+)

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;
 }