[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/2] xics: Add /* Reason */ comment to "->user_creatable = false"
From: |
Greg Kurz |
Subject: |
[PATCH 2/2] xics: Add /* Reason */ comment to "->user_creatable = false" statements |
Date: |
Mon, 07 Oct 2019 15:43:09 +0200 |
User-agent: |
StGit/unknown-version |
Signed-off-by: Greg Kurz <address@hidden>
---
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;
}