summary refs log tree commit diff stats
path: root/hw/arm/netduino2.c
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2024-01-06 19:15:01 +0100
committerPeter Maydell <peter.maydell@linaro.org>2024-01-09 14:42:40 +0000
commitd09923ad19fc3d653693ee81f1742fb8d29c5730 (patch)
tree13744d2cfb0219ca45f4a4232a112df876a4ac41 /hw/arm/netduino2.c
parent41581f13619d0d66593a75c5299c8d546710cc9e (diff)
downloadfocaccia-qemu-d09923ad19fc3d653693ee81f1742fb8d29c5730.tar.gz
focaccia-qemu-d09923ad19fc3d653693ee81f1742fb8d29c5730.zip
hw/intc/armv7m_nvic: add "num-prio-bits" property
Cortex-M NVIC can have a different number of priority bits.
Cortex-M0/M0+/M1 devices must use 2 or more bits, while devices based
on ARMv7m and up must use 3 or more bits.

This adds a "num-prio-bits" property which will get sensible default
values if unset (2 or 8 depending on the device). Unless a SOC
specifies the number of bits to use, the previous behavior is
maintained for backward compatibility.

Signed-off-by: Samuel Tardieu <sam@rfc1149.net>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-id: 20240106181503.1746200-2-sam@rfc1149.net
Suggested-by: Anton Kochkov <anton.kochkov@proton.me>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1122
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/netduino2.c')
0 files changed, 0 insertions, 0 deletions