qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] hw/hppa: Clarify machine variables and move them out of CPUArchState
@ 2025-10-10  6:18 Philippe Mathieu-Daudé
  2025-10-10  6:18 ` [PATCH v2 1/6] hw/hppa: Convert type_init() -> DEFINE_TYPES() Philippe Mathieu-Daudé
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2025-10-10  6:18 UTC (permalink / raw)
  To: qemu-devel
  Cc: Helge Deller, Anton Johansson, Richard Henderson,
	Philippe Mathieu-Daudé

Since v1:
- Simplified (rth)

The HPPA machines uses a pair of variables for distinct meanings,
depending on kernel or firmware mode used. Replace by variables
per mode, allowing to use the proper type. This helps reviewing
the code. This cleanup allows removing unjustified target_ulong
uses.

Philippe Mathieu-Daudé (6):
  hw/hppa: Convert type_init() -> DEFINE_TYPES()
  hw/hppa: Factor QOM HPPA_COMMON_MACHINE out
  hw/hppa: Reduce variables scope in common_init()
  hw/hppa: Move CPU::kernel_entry -> Machine::boot_info.gr25
  hw/hppa: Move CPU::cmdline_or_bootorder -> Machine::boot_info.gr24
  hw/hppa: Move CPU::initrd_base/end -> Machine::boot_info.gr22/23

 target/hppa/cpu.h |   4 --
 hw/hppa/machine.c | 152 ++++++++++++++++++++++++----------------------
 2 files changed, 79 insertions(+), 77 deletions(-)

-- 
2.51.0



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

end of thread, other threads:[~2025-10-10 18:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-10-10  6:18 [PATCH v2 0/6] hw/hppa: Clarify machine variables and move them out of CPUArchState Philippe Mathieu-Daudé
2025-10-10  6:18 ` [PATCH v2 1/6] hw/hppa: Convert type_init() -> DEFINE_TYPES() Philippe Mathieu-Daudé
2025-10-10  6:18 ` [PATCH v2 2/6] hw/hppa: Factor QOM HPPA_COMMON_MACHINE out Philippe Mathieu-Daudé
2025-10-10  6:18 ` [PATCH v2 3/6] hw/hppa: Reduce variables scope in common_init() Philippe Mathieu-Daudé
2025-10-10 17:23   ` Richard Henderson
2025-10-10  6:18 ` [PATCH v2 4/6] hw/hppa: Move CPU::kernel_entry -> Machine::boot_info.gr25 Philippe Mathieu-Daudé
2025-10-10 17:54   ` Richard Henderson
2025-10-10  6:18 ` [PATCH v2 5/6] hw/hppa: Move CPU::cmdline_or_bootorder -> Machine::boot_info.gr24 Philippe Mathieu-Daudé
2025-10-10 17:57   ` Richard Henderson
2025-10-10  6:18 ` [PATCH v2 6/6] hw/hppa: Move CPU::initrd_base/end -> Machine::boot_info.gr22/23 Philippe Mathieu-Daudé
2025-10-10 17:59   ` Richard Henderson

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