Skip to content

hw/sparc: Kconfig fixes to build with/without the leon3 machine

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 Latest4 patches 7 repliesIn review
  2. v12 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- move cpu_check_irqs() to target/sparc/ (rth)

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4hw/sparc: Allow building without the leon3 machinehw/sparc/leon3.c hw/sparc/trace-events target/sparc/cpu.h +2 more+38 -480 replies
2/4hw/sparc64: Remove unused "hw/char/serial.h" headerhw/sparc64/sparc64.c+0 -12 replies
3/4hw/sparc64: Fix code style for checkpatch.plhw/sparc64/sparc64.c+8 -42 replies
4/4hw/sparc*: Move cpu_check_irqs() to target/sparc/hw/sparc/sun4m.c hw/sparc/trace-events hw/sparc64/sparc64.c +4 more+107 -1041 reply

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard HendersonKONRAD FredericMark Cave-Ayland
SeriesR-b
1/4R-b R-b T-b
2/4R-b R-b
3/4R-b R-b
4/4R-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/4] hw/sparc: Kconfig fixes to build with/without the leon3 machine

Missing review: 2-4

Since v1:
- move cpu_check_irqs() to target/sparc/ (rth)

This series fixes link failure when building either the leon3 machine or the sun4m ones.

The problem is we have hardware specific code in the architectural translation code. Move this code to hw/sparc/.

The link failures can be reproduced doing:

  $ echo CONFIG_LEON3=y > default-configs/devices/sparc-softmmu.mak
  $ configure --without-default-devices
  $ ninja qemu-system-sparc
  $ ./qemu-system-sparc -M leon3 -S

or:

  $ echo CONFIG_SUN4M=y > default-configs/devices/sparc-softmmu.mak

Philippe Mathieu-Daudé (4):
hw/sparc: Allow building without the leon3 machine hw/sparc64: Remove unused "hw/char/serial.h" header hw/sparc64: Fix code style for checkpatch.pl hw/sparc*: Move cpu_check_irqs() to target/sparc/

 target/sparc/cpu.h          |  6 ----
 hw/sparc/leon3.c            | 37 +++++++++++++++++++-
 hw/sparc/sun4m.c            | 32 -----------------
 hw/sparc64/sparc64.c        | 63 ---------------------------------
 target/sparc/int32_helper.c | 70 +++++++++++++++++--------------------
 target/sparc/int64_helper.c | 66 ++++++++++++++++++++++++++++++++++
 hw/sparc/trace-events       |  4 +--
 hw/sparc64/trace-events     |  4 ---
 target/sparc/trace-events   | 12 ++++---
 9 files changed, 145 insertions(+), 149 deletions(-)
Signature · 1 line
2.26.3