qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH-for-8.2? v2 0/4] hw/arm/stm32xxx: Report error when incorrect CPU is used
@ 2023-11-17  7:17 Philippe Mathieu-Daudé
  2023-11-17  7:17 ` [PATCH-for-8.2? v2 1/4] hw/core/machine: Constify MachineClass::valid_cpu_types[] Philippe Mathieu-Daudé
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-11-17  7:17 UTC (permalink / raw)
  To: qemu-devel
  Cc: Subbaraya Sundeep, Arnaud Minier, Igor Mammedov, Laurent Vivier,
	Philippe Mathieu-Daudé, Tyrone Ting, Hao Wu,
	Marcel Apfelbaum, Felipe Balbi, qemu-arm, Inès Varhol,
	Alistair Francis, Yanan Wang, Richard Henderson, Eduardo Habkost,
	Peter Maydell, Helge Deller, Subbaraya Sundeep, Alexandre Iooss,
	Gavin Shan

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/170003673257.14701.8139061802716120109-0@git.sr.ht/

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(-)

-- 
2.41.0



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

end of thread, other threads:[~2023-12-06  0:13 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-17  7:17 [PATCH-for-8.2? v2 0/4] hw/arm/stm32xxx: Report error when incorrect CPU is used Philippe Mathieu-Daudé
2023-11-17  7:17 ` [PATCH-for-8.2? v2 1/4] hw/core/machine: Constify MachineClass::valid_cpu_types[] Philippe Mathieu-Daudé
2023-11-17  7:17 ` [PATCH-for-8.2? v2 2/4] hw/arm/stm32f405: Report error when incorrect CPU is used Philippe Mathieu-Daudé
2023-11-20  7:16   ` Gavin Shan
2023-11-24 13:13   ` Igor Mammedov
2023-11-24 13:21     ` Philippe Mathieu-Daudé
2023-12-06  0:12   ` Alistair Francis
2023-11-17  7:17 ` [PATCH-for-8.2? v2 3/4] hw/arm/stm32f205: " Philippe Mathieu-Daudé
2023-11-20  7:16   ` Gavin Shan
2023-11-17  7:17 ` [PATCH-for-8.2? v2 4/4] hw/arm/stm32f100: " Philippe Mathieu-Daudé
2023-11-20  7:17   ` Gavin Shan
2023-11-20 15:31 ` [PATCH-for-8.2? v2 0/4] hw/arm/stm32xxx: " Peter Maydell

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).