Message ID | 20231216182740.3305724-3-sam@rfc1149.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Add "num-prio-bits" property for Cortex-M devices | expand |
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);
Signed-off-by: Samuel Tardieu <sam@rfc1149.net> --- hw/arm/armv7m.c | 2 ++ 1 file changed, 2 insertions(+)