[PATCH v2 0/6] hw/hppa: Clarify machine variables and move them out of CPUArchState

Philippe Mathieu-Daudé posted 6 patches 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251010061836.45739-1-philmd@linaro.org
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Helge Deller <deller@gmx.de>
target/hppa/cpu.h |   4 --
hw/hppa/machine.c | 152 ++++++++++++++++++++++++----------------------
2 files changed, 79 insertions(+), 77 deletions(-)
[PATCH v2 0/6] hw/hppa: Clarify machine variables and move them out of CPUArchState
Posted by Philippe Mathieu-Daudé 1 month ago
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