[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 2/3] hw/arm/armv7m: alias the NVIC "num-prio-bits" property
From: |
Samuel Tardieu |
Subject: |
[PATCH 2/3] hw/arm/armv7m: alias the NVIC "num-prio-bits" property |
Date: |
Sat, 16 Dec 2023 19:27:39 +0100 |
Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
---
hw/arm/armv7m.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/arm/armv7m.c b/hw/arm/armv7m.c
index d10abb36a8..4fda2d1d47 100644
--- a/hw/arm/armv7m.c
+++ b/hw/arm/armv7m.c
@@ -256,6 +256,8 @@ static void armv7m_instance_init(Object *obj)
object_initialize_child(obj, "nvic", &s->nvic, TYPE_NVIC);
object_property_add_alias(obj, "num-irq",
OBJECT(&s->nvic), "num-irq");
+ object_property_add_alias(obj, "num-prio-bits",
+ OBJECT(&s->nvic), "num-prio-bits");
object_initialize_child(obj, "systick-reg-ns", &s->systick[M_REG_NS],
TYPE_SYSTICK);
--
2.42.0