All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 00/12] cpu_reset clean-ups for arm, sh4, mips, m68k and tricore
@ 2026-01-08 14:34 Alex Bennée
  2026-01-08 14:34 ` [RFC PATCH 01/12] target/sh4: drop cpu_reset from realizefn Alex Bennée
                   ` (12 more replies)
  0 siblings, 13 replies; 40+ messages in thread
From: Alex Bennée @ 2026-01-08 14:34 UTC (permalink / raw)
  To: qemu-devel
  Cc: Aurelien Jarno, Jiaxun Yang, Bastian Koppelmann, Marcel Apfelbaum,
	Zhao Liu, Peter Maydell, Laurent Vivier,
	Philippe Mathieu-Daudé, qemu-arm, Yoshinori Sato, Yanan Wang,
	Aleksandar Rikalo, Thomas Huth, Eduardo Habkost, Alex Bennée

We tend to apply cpu_reset inconsistently throughout our various
models which leads to unintended ordering dependencies. This got in
the way in my last plugins series:

  https://patchew.org/QEMU/20251219190849.238323-1-alex.bennee@linaro.org/

where I needed to shuffle things around to ensure that gdb register
creation was done after dependant peripherals had created their cpu
interfaces.

Regardless of that we do have a proper reset interface now and most
architectures have moved to it. This series attempts to clean-up the
remaining cases with proper qemu_register_reset() calls so reset is
called when we intend to.

Alex.

Alex Bennée (12):
  target/sh4: drop cpu_reset from realizefn
  target/m68k: introduce env->reset_pc
  hw/m68k: register a nextcube_cpu_reset handler
  hw/m68k: register a mcf5208evb_cpu_reset handler
  hw/m68k: register a an5206_cpu_reset handler
  hw/m68k: just use reset_pc for virt platform
  target/m68k: drop cpu_reset on realizefn
  hw/mips: defer finalising gcr_base until reset time
  hw/mips: drop cpu_reset in mips_cpu_realizefn
  target/tricore: move cpu_reset from tricore_cpu_realizefn
  target/arm: remove extraneous cpu_reset from realizefn
  include/hw: expand cpu_reset function docs

 include/hw/core/cpu.h |  3 +++
 target/m68k/cpu.h     |  1 +
 hw/m68k/an5206.c      | 24 +++++++++++++++++-------
 hw/m68k/mcf5208.c     | 25 +++++++++++++++++++------
 hw/m68k/next-cube.c   | 23 +++++++++++++++++------
 hw/m68k/virt.c        | 24 +++++++-----------------
 hw/mips/cps.c         | 22 +++++++++++++---------
 hw/misc/mips_cmgcr.c  |  1 -
 target/arm/cpu.c      |  1 -
 target/m68k/cpu.c     |  1 -
 target/mips/cpu.c     |  1 -
 target/sh4/cpu.c      |  1 -
 target/tricore/cpu.c  |  9 ++++++++-
 13 files changed, 85 insertions(+), 51 deletions(-)

-- 
2.47.3



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

end of thread, other threads:[~2026-01-13 22:12 UTC | newest]

Thread overview: 40+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-08 14:34 [RFC PATCH 00/12] cpu_reset clean-ups for arm, sh4, mips, m68k and tricore Alex Bennée
2026-01-08 14:34 ` [RFC PATCH 01/12] target/sh4: drop cpu_reset from realizefn Alex Bennée
2026-01-11  7:51   ` Richard Henderson
2026-01-12 13:58   ` Philippe Mathieu-Daudé
2026-01-08 14:34 ` [RFC PATCH 02/12] target/m68k: introduce env->reset_pc Alex Bennée
2026-01-08 17:14   ` BALATON Zoltan
2026-01-08 17:23     ` BALATON Zoltan
2026-01-08 17:44     ` Alex Bennée
2026-01-10  5:33   ` Thomas Huth
2026-01-11  7:52   ` Richard Henderson
2026-01-13  1:17     ` Richard Henderson
2026-01-08 14:34 ` [RFC PATCH 03/12] hw/m68k: register a nextcube_cpu_reset handler Alex Bennée
2026-01-10  5:42   ` Thomas Huth
2026-01-13  1:20   ` Richard Henderson
2026-01-08 14:34 ` [RFC PATCH 04/12] hw/m68k: register a mcf5208evb_cpu_reset handler Alex Bennée
2026-01-13  1:21   ` Richard Henderson
2026-01-13 16:38   ` Peter Maydell
2026-01-13 18:08     ` BALATON Zoltan
2026-01-13 18:30       ` Peter Maydell
2026-01-13 22:12         ` BALATON Zoltan
2026-01-08 14:34 ` [RFC PATCH 05/12] hw/m68k: register a an5206_cpu_reset handler Alex Bennée
2026-01-10  5:50   ` Thomas Huth
2026-01-13  1:22   ` Richard Henderson
2026-01-08 14:34 ` [RFC PATCH 06/12] hw/m68k: just use reset_pc for virt platform Alex Bennée
2026-01-10  5:52   ` Thomas Huth
2026-01-13  1:19   ` Richard Henderson
2026-01-08 14:34 ` [RFC PATCH 07/12] target/m68k: drop cpu_reset on realizefn Alex Bennée
2026-01-10  5:53   ` Thomas Huth
2026-01-11  7:55   ` Richard Henderson
2026-01-08 14:34 ` [RFC PATCH 08/12] hw/mips: defer finalising gcr_base until reset time Alex Bennée
2026-01-13 16:29   ` Peter Maydell
2026-01-08 14:34 ` [RFC PATCH 09/12] hw/mips: drop cpu_reset in mips_cpu_realizefn Alex Bennée
2026-01-08 14:34 ` [RFC PATCH 10/12] target/tricore: move cpu_reset from tricore_cpu_realizefn Alex Bennée
2026-01-13 16:46   ` Peter Maydell
2026-01-08 14:34 ` [RFC PATCH 11/12] target/arm: remove extraneous cpu_reset from realizefn Alex Bennée
2026-01-08 14:34 ` [RFC PATCH 12/12] include/hw: expand cpu_reset function docs Alex Bennée
2026-01-13  1:24   ` Richard Henderson
2026-01-08 15:35 ` [RFC PATCH 00/12] cpu_reset clean-ups for arm, sh4, mips, m68k and tricore Philippe Mathieu-Daudé
2026-01-08 16:34   ` Alex Bennée
2026-01-13 16:51     ` 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.