qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] hw/sparc: Kconfig fixes to build with/without the leon3 machine
@ 2021-04-27 19:26 Philippe Mathieu-Daudé
  2021-04-27 19:26 ` [PATCH 1/2] hw/sparc: Allow building the leon3 machine stand-alone Philippe Mathieu-Daudé
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Philippe Mathieu-Daudé @ 2021-04-27 19:26 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, Mark Cave-Ayland, Richard Henderson,
	Philippe Mathieu-Daudé, Fabien Chouteau, KONRAD Frederic,
	Artyom Tarasenko

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é (2):
  hw/sparc: Allow building the leon3 machine stand-alone
  hw/sparc: Allow building without the leon3 machine

 target/sparc/cpu.h          |  6 ----
 hw/sparc/irq.c              | 61 +++++++++++++++++++++++++++++++++++++
 hw/sparc/leon3.c            | 37 +++++++++++++++++++++-
 hw/sparc/sun4m.c            | 32 -------------------
 target/sparc/int32_helper.c | 37 ----------------------
 hw/sparc/meson.build        |  1 +
 hw/sparc/trace-events       |  2 ++
 target/sparc/trace-events   |  4 ---
 8 files changed, 100 insertions(+), 80 deletions(-)
 create mode 100644 hw/sparc/irq.c

-- 
2.26.3



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

end of thread, other threads:[~2021-04-28  9:23 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-04-27 19:26 [PATCH 0/2] hw/sparc: Kconfig fixes to build with/without the leon3 machine Philippe Mathieu-Daudé
2021-04-27 19:26 ` [PATCH 1/2] hw/sparc: Allow building the leon3 machine stand-alone Philippe Mathieu-Daudé
2021-04-28  0:11   ` Richard Henderson
2021-04-28  8:38     ` Mark Cave-Ayland
2021-04-27 19:26 ` [RFC PATCH 2/2] hw/sparc: Allow building without the leon3 machine Philippe Mathieu-Daudé
2021-04-28  0:07   ` Richard Henderson
2021-04-28  9:21   ` Fred Konrad
2021-04-28  8:40 ` [PATCH 0/2] hw/sparc: Kconfig fixes to build with/without " Mark Cave-Ayland
2021-04-28  9:05 ` Fred Konrad

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