]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
lasi: move from hw/hppa to hw/misc
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 4 May 2022 09:25:52 +0000 (10:25 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Sun, 8 May 2022 17:52:37 +0000 (18:52 +0100)
Move the LASI device implementation from hw/hppa to hw/misc so that it is
located with all the other miscellaneous devices.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Acked-by: Helge Deller <deller@gmx.de>
Message-Id: <20220504092600.10048-43-mark.cave-ayland@ilande.co.uk>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
MAINTAINERS
hw/hppa/Kconfig
hw/hppa/machine.c
hw/hppa/meson.build
hw/hppa/trace-events
hw/misc/Kconfig
hw/misc/lasi.c [moved from hw/hppa/lasi.c with 99% similarity]
hw/misc/meson.build
hw/misc/trace-events
include/hw/misc/lasi.h [moved from hw/hppa/lasi.h with 100% similarity]

index 59210b093a447ac71aea90f2ef8f9a27aa53733e..662ec47246793d54b3cb8610587b34c94d8ec995 100644 (file)
@@ -1113,7 +1113,9 @@ S: Odd Fixes
 F: configs/devices/hppa-softmmu/default.mak
 F: hw/hppa/
 F: hw/net/*i82596*
+F: hw/misc/lasi.c
 F: hw/pci-host/dino.c
+F: include/hw/misc/lasi.h
 F: include/hw/net/lasi_82596.h
 F: include/hw/pci-host/dino.h
 F: pc-bios/hppa-firmware.img
index 724380ecec286682905c6d5fb1a1097ee05fa0ac..5dd8b5b21e25fc164083b7ddc27e8f085ae00363 100644 (file)
@@ -4,6 +4,7 @@ config HPPA_B160L
     imply E1000_PCI
     imply VIRTIO_VGA
     select DINO
+    select LASI
     select SERIAL
     select ISA_BUS
     select I8259
index 9d904b7a60579b7bae29e0771f8a87f3beb272fb..f3d72b4c35ab4f05730ecff19ab7081638b35799 100644 (file)
@@ -22,7 +22,7 @@
 #include "hw/nmi.h"
 #include "hw/pci/pci.h"
 #include "hw/pci-host/dino.h"
-#include "lasi.h"
+#include "hw/misc/lasi.h"
 #include "hppa_sys.h"
 #include "qemu/units.h"
 #include "qapi/error.h"
index a6f9db455c728410c39653e939f358c20e305aaa..bd5a1fb1d2fd7d3e02d3de8936209867b308b419 100644 (file)
@@ -1,4 +1,4 @@
 hppa_ss = ss.source_set()
-hppa_ss.add(when: 'CONFIG_HPPA_B160L', if_true: files('pci.c', 'machine.c', 'lasi.c'))
+hppa_ss.add(when: 'CONFIG_HPPA_B160L', if_true: files('pci.c', 'machine.c'))
 
 hw_arch += {'hppa': hppa_ss}
index 871a473771e7fea0c6cfad4b39525c16e1c2e787..1a4fbe2fa8f4f4044841c6895155c7699baf4759 100644 (file)
@@ -2,8 +2,3 @@
 
 # pci.c
 hppa_pci_iack_write(void) ""
-
-# lasi.c
-lasi_chip_mem_valid(uint64_t addr, uint32_t val) "access to addr 0x%"PRIx64" is %d"
-lasi_chip_read(uint64_t addr, uint32_t val) "addr 0x%"PRIx64" val 0x%08x"
-lasi_chip_write(uint64_t addr, uint32_t val) "addr 0x%"PRIx64" val 0x%08x"
index 507058d8bffbf92f2abc1c7a2bf7bb4a77a955fd..cbabe9f78c37c6ea364aba838fd9d08f2d20f9fe 100644 (file)
@@ -171,4 +171,7 @@ config SIFIVE_U_PRCI
 config VIRT_CTRL
     bool
 
+config LASI
+    bool
+
 source macio/Kconfig
similarity index 99%
rename from hw/hppa/lasi.c
rename to hw/misc/lasi.c
index 5ef36f3f58b6acab5e4dad44f7dec3f1a739b1bf..23a7634a8c3ad70792654794315cc99d289eda0e 100644 (file)
 #include "hw/irq.h"
 #include "sysemu/sysemu.h"
 #include "sysemu/runstate.h"
-#include "hppa_sys.h"
 #include "migration/vmstate.h"
 #include "qom/object.h"
-#include "lasi.h"
+#include "hw/misc/lasi.h"
 
 
 static bool lasi_chip_mem_valid(void *opaque, hwaddr addr,
index 2ff05c7afa9503e171e4331360f251022bd2e8d6..132b7b7344bb0f0db712f2a3d5000ba40afc870f 100644 (file)
@@ -134,3 +134,6 @@ specific_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_cmgcr.c', 'mips_cp
 specific_ss.add(when: 'CONFIG_MIPS_ITU', if_true: files('mips_itu.c'))
 
 specific_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa_ec.c'))
+
+# HPPA devices
+softmmu_ss.add(when: 'CONFIG_LASI', if_true: files('lasi.c'))
index 4e0c7973a4d1bb490a23a05ff84a6ecdba2dd012..c5e37b01547f15d29a656b65bfae0646aff172a0 100644 (file)
@@ -263,3 +263,8 @@ virt_ctrl_write(void *dev, unsigned int addr, unsigned int size, uint64_t value)
 virt_ctrl_reset(void *dev) "ctrl: %p"
 virt_ctrl_realize(void *dev) "ctrl: %p"
 virt_ctrl_instance_init(void *dev) "ctrl: %p"
+
+# lasi.c
+lasi_chip_mem_valid(uint64_t addr, uint32_t val) "access to addr 0x%"PRIx64" is %d"
+lasi_chip_read(uint64_t addr, uint32_t val) "addr 0x%"PRIx64" val 0x%08x"
+lasi_chip_write(uint64_t addr, uint32_t val) "addr 0x%"PRIx64" val 0x%08x"
similarity index 100%
rename from hw/hppa/lasi.h
rename to include/hw/misc/lasi.h