openpic: move KVM-specific declarations into separate openpic_kvm.h file
authorMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 28 Feb 2018 20:32:39 +0000 (20:32 +0000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 6 Mar 2018 02:16:29 +0000 (13:16 +1100)
This is needed before the next patch because the target-dependent kvm stub
uses the existing kvm_openpic_connect_vcpu() declaration, making it impossible
to move the device-specific declarations into the same file without breaking
ppc-linux-user compilation.

Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/openpic_kvm.c
hw/ppc/e500.c
include/hw/ppc/openpic.h
include/hw/ppc/openpic_kvm.h [new file with mode: 0644]
target/ppc/kvm-stub.c

index fa83420254d8a7e95a6abc162e7d6b4fbb1a57a1..f1a59e5a8519d9a56a1b5025fac242c2ba961e88 100644 (file)
@@ -30,6 +30,7 @@
 #include "exec/address-spaces.h"
 #include "hw/hw.h"
 #include "hw/ppc/openpic.h"
+#include "hw/ppc/openpic_kvm.h"
 #include "hw/pci/msi.h"
 #include "hw/sysbus.h"
 #include "sysemu/kvm.h"
index a40d3ec3e375dbf6e7aa90cbd0724d64dfea7084..13a34f50b7df8251cf28c0c8bae3032636ae42cc 100644 (file)
@@ -29,6 +29,7 @@
 #include "kvm_ppc.h"
 #include "sysemu/device_tree.h"
 #include "hw/ppc/openpic.h"
+#include "hw/ppc/openpic_kvm.h"
 #include "hw/ppc/ppc.h"
 #include "hw/loader.h"
 #include "elf.h"
index e55ce546aa49b05b212e990f98582518502d2c93..693e98196545a51e0e8cd89f7f30a414a38972c2 100644 (file)
@@ -28,7 +28,4 @@ enum {
 #define OPENPIC_MAX_IRQ     (OPENPIC_MAX_SRC + OPENPIC_MAX_IPI + \
                              OPENPIC_MAX_TMR)
 
-#define TYPE_KVM_OPENPIC "kvm-openpic"
-int kvm_openpic_connect_vcpu(DeviceState *d, CPUState *cs);
-
 #endif /* OPENPIC_H */
diff --git a/include/hw/ppc/openpic_kvm.h b/include/hw/ppc/openpic_kvm.h
new file mode 100644 (file)
index 0000000..9ef4215
--- /dev/null
@@ -0,0 +1,7 @@
+#ifndef OPENPIC_KVM_H
+#define OPENPIC_KVM_H
+
+#define TYPE_KVM_OPENPIC "kvm-openpic"
+int kvm_openpic_connect_vcpu(DeviceState *d, CPUState *cs);
+
+#endif /* OPENPIC_KVM_H */
index efeafca1df61b247e549c7bc9b00fe649e888a7a..b8aa97f2d491bd0af0bf3fa88d92ecf69329b19c 100644 (file)
@@ -12,7 +12,7 @@
 #include "qemu/osdep.h"
 #include "qemu-common.h"
 #include "cpu.h"
-#include "hw/ppc/openpic.h"
+#include "hw/ppc/openpic_kvm.h"
 
 int kvm_openpic_connect_vcpu(DeviceState *d, CPUState *cs)
 {