Skip to content

hw/arm/stm32xxx: Report error when incorrect CPU is used

Philippe Mathieu-Daudé qemu-arm qemu-devel 2 versions – Applied

Status from this message: Applied to target-arm.next, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 7 repliesApplied
  2. v16 patches 3 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/4hw/core/machine: Constify MachineClass::valid_cpu_types[]hw/hppa/machine.c hw/m68k/q800.c include/hw/boards.h+16 -190 replies
2/4hw/arm/stm32f405: Report error when incorrect CPU is usedhw/arm/netduinoplus2.c hw/arm/olimex-stm32-h405.c hw/arm/stm32f405_soc.c +1 more+13 -144 replies
3/4hw/arm/stm32f205: Report error when incorrect CPU is usedhw/arm/netduino2.c hw/arm/stm32f205_soc.c include/hw/arm/stm32f205_soc.h+8 -121 reply
4/4hw/arm/stm32f100: Report error when incorrect CPU is usedhw/arm/stm32f100_soc.c hw/arm/stm32vldiscovery.c include/hw/arm/stm32f100_soc.h+8 -121 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchPhilippe Mathieu-DaudéRichard HendersonGavin ShanAlistair Francis
1/4R-b R-b
2/4R-b R-b R-b
3/4R-b R-b
4/4R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v2 thread

Cover letter [PATCH-for-8.2? v2 0/4] hw/arm/stm32xxx: Report error when incorrect CPU is used

Series fully reviewed.

Hi,

While reviewing this [*] series from Arnaud and Inès, I realized STM32 based boards don't check the requested CPU type is correct, and ignore it. Possibly confusing users.
Since these simple boards code is used as template, I took the opportunity to sanitize it a bit, using the MachineClass::valid_cpu_types which seems simpler (to me) for newcomers.

Patches are candidate for 8.2 but this is a long standing issue, not a regression from 8.1.

Regards,

Phil.

[*] https://lore.kernel.org/qemu-devel/[email protected]/

Gavin Shan (1):
hw/core/machine: Constify MachineClass::valid_cpu_types[]

Philippe Mathieu-Daudé (3):
hw/arm/stm32f405: Report error when incorrect CPU is used hw/arm/stm32f205: Report error when incorrect CPU is used hw/arm/stm32f100: Report error when incorrect CPU is used

 include/hw/arm/stm32f100_soc.h |  4 ----
 include/hw/arm/stm32f205_soc.h |  4 ----
 include/hw/arm/stm32f405_soc.h |  4 ----
 include/hw/boards.h            |  2 +-
 hw/arm/netduino2.c             |  7 ++++++-
 hw/arm/netduinoplus2.c         |  7 ++++++-
 hw/arm/olimex-stm32-h405.c     |  8 ++++++--
 hw/arm/stm32f100_soc.c         |  9 ++-------
 hw/arm/stm32f205_soc.c         |  9 ++-------
 hw/arm/stm32f405_soc.c         |  8 +-------
 hw/arm/stm32vldiscovery.c      |  7 ++++++-
 hw/hppa/machine.c              | 22 ++++++++++------------
 hw/m68k/q800.c                 | 11 +++++------
 13 files changed, 45 insertions(+), 57 deletions(-)
Signature · 1 line
2.41.0