Skip to content

system: Absorb globals-target.c within common globals.c

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 Latest8 patches 5 repliesIn review
  2. v18 patches 29 repliesSuperseded

Changes in v2 from the cover letter

- Inlined PPC code in patch #7 (Mark)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8hw/display/macfb: Constify macfb_sense_table[] arrayhw/display/macfb.c+2 -21 reply
2/8hw/display/macfb: Constify macfb_mode_table[] arrayhw/display/macfb.c hw/m68k/q800.c include/hw/display/macfb.h+7 -71 reply
3/8hw/m68k/q800: Use MacFbMode fields in q800_machine_init()hw/m68k/q800.c+2 -20 replies
4/8hw/m68k/q800: Set MACFB_DISPLAY_APPLE_21_COLOR within MacFrameBufferhw/display/macfb.c hw/m68k/q800.c+4 -50 replies
5/8hw/m68k: Set graphic display dimensions genericallyhw/m68k/q800.c system/globals-target.c+6 -60 replies
6/8hw/sparc: Set graphic display dimensions genericallyhw/sparc/sun4m.c hw/sparc64/sun4u.c system/globals-target.c+20 -50 replies
7/8hw/ppc: Set graphic display dimensions genericallyhw/ppc/mac_newworld.c hw/ppc/mac_oldworld.c hw/ppc/prep.c +2 more+36 -61 reply
8/8system/globals: Build as common codesystem/globals-target.c system/globals.c system/meson.build+3 -181 reply

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchPierrick BouvierMark Cave-AylandRichard Henderson
1/8R-b R-b R-b
2/8R-b R-b R-b
3/8R-b R-b
4/8R-b R-b
5/8R-b R-b
6/8R-b R-b
7/8R-b
8/8R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/8] system: Absorb globals-target.c within common globals.c

Missing review: #7

Since v1:
- Inlined PPC code in patch #7 (Mark)

Slightly rework how the graphic dimension variables for the M68k / PPC / SPARC targets are initialized, removing the need for the target-specific globals-target.c file.

Previous discussion:
https://lore.kernel.org/qemu-devel/[email protected]/

Philippe Mathieu-Daudé (8):
hw/display/macfb: Constify macfb_sense_table[] array hw/display/macfb: Constify macfb_mode_table[] array hw/m68k/q800: Use MacFbMode fields in q800_machine_init() hw/m68k/q800: Set MACFB_DISPLAY_APPLE_21_COLOR within MacFrameBuffer hw/m68k: Set graphic display dimensions generically hw/sparc: Set graphic display dimensions generically hw/ppc: Set graphic display dimensions generically system/globals: Build as common code

 include/hw/display/macfb.h |  2 +-
 hw/display/macfb.c         | 18 +++++++++++-------
 hw/m68k/q800.c             | 17 ++++++-----------
 hw/ppc/mac_newworld.c      |  9 +++++++++
 hw/ppc/mac_oldworld.c      |  9 +++++++++
 hw/ppc/prep.c              |  9 +++++++++
 hw/ppc/spapr.c             |  9 +++++++++
 hw/sparc/sun4m.c           |  9 +++++++++
 hw/sparc64/sun4u.c         | 10 ++++++++++
 system/globals-target.c    | 24 ------------------------
 system/globals.c           |  3 +++
 system/meson.build         |  4 ----
 12 files changed, 76 insertions(+), 47 deletions(-)
 delete mode 100644 system/globals-target.c
Signature · 1 line
2.52.0