Skip to content

hw/hppa: Clarify machine variables and move them out of CPUArchState

Philippe Mathieu-Daudé qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest6 patches 4 repliesIn review
  2. v16 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Simplified (rth)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6hw/hppa: Convert type_init() -> DEFINE_TYPES()hw/hppa/machine.c+18 -240 replies
2/6hw/hppa: Factor QOM HPPA_COMMON_MACHINE outhw/hppa/machine.c+33 -280 replies
3/6hw/hppa: Reduce variables scope in common_init()hw/hppa/machine.c+9 -61 reply
4/6hw/hppa: Move CPU::kernel_entry -> Machine::boot_info.gr25hw/hppa/machine.c target/hppa/cpu.h+16 -131 reply
5/6hw/hppa: Move CPU::cmdline_or_bootorder -> Machine::boot_info.gr24hw/hppa/machine.c target/hppa/cpu.h+7 -81 reply
6/6hw/hppa: Move CPU::initrd_base/end -> Machine::boot_info.gr22/23hw/hppa/machine.c target/hppa/cpu.h+6 -81 reply

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by.

PatchRichard Henderson
1/6R-b
2/6R-b
3/6R-b
4/6R-b
5/6
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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

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(-)
Signature · 1 line
2.51.0