All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] Add "num-prio-bits" property for Cortex-M devices
@ 2023-12-16 18:27 Samuel Tardieu
  2023-12-16 18:27 ` [PATCH 1/3] hw/intc/armv7m_nvic: add "num-prio-bits" property Samuel Tardieu
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Samuel Tardieu @ 2023-12-16 18:27 UTC (permalink / raw)
  To: qemu-devel
  Cc: Anton Kochkov, qemu-arm, Alexandre Iooss, Alistair Francis,
	Peter Maydell, Samuel Tardieu

This patch series builds on a discussion initiated by Anton Kochkov on this
list in 2022. It allows setting the appropriate number of priority bits for
Cortex-M devices. For example, FreeRTOS checks at startup that the right
number of priority bits is available in order to guarantee its runtime
structures safety. They added a configuration option specially for QEMU
to disable this check because QEMU always use 2 bits for Cortex-M0/M0+/M1
and 8 bits for other devices.

While this change allows the number of priority bits to be properly
configured, it keeps the same default as before in order to preserve
backward compatibility.

Based-on: <20220813112559.1974427-1-anton.kochkov@proton.me>
([PATCH] hw/arm/nvic: implement "num-prio-bits" property)

Samuel Tardieu (3):
  hw/intc/armv7m_nvic: add "num-prio-bits" property
  hw/arm/armv7m: alias the NVIC "num-prio-bits" property
  hw/arm/socs: configure priority bits for existing SOCs

 hw/arm/armv7m.c        |  2 ++
 hw/arm/stellaris.c     |  2 ++
 hw/arm/stm32f100_soc.c |  1 +
 hw/arm/stm32f205_soc.c |  1 +
 hw/arm/stm32f405_soc.c |  1 +
 hw/intc/armv7m_nvic.c  | 23 ++++++++++++++++++++++-
 6 files changed, 29 insertions(+), 1 deletion(-)

-- 
2.42.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2023-12-19 20:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-16 18:27 [PATCH 0/3] Add "num-prio-bits" property for Cortex-M devices Samuel Tardieu
2023-12-16 18:27 ` [PATCH 1/3] hw/intc/armv7m_nvic: add "num-prio-bits" property Samuel Tardieu
2023-12-16 18:27 ` [PATCH 2/3] hw/arm/armv7m: alias the NVIC " Samuel Tardieu
2023-12-16 18:27 ` [PATCH 3/3] hw/arm/socs: configure priority bits for existing SOCs Samuel Tardieu
2023-12-17  7:35 ` [PATCH 0/3] Add "num-prio-bits" property for Cortex-M devices Samuel Tardieu
2023-12-19 16:05   ` Peter Maydell
2023-12-19 19:13     ` Samuel Tardieu
2023-12-19 20:46       ` Peter Maydell

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.