[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PULL 13/24] openpic: move KVM-specific declarations into sep
From: |
David Gibson |
Subject: |
[Qemu-ppc] [PULL 13/24] openpic: move KVM-specific declarations into separate openpic_kvm.h file |
Date: |
Fri, 2 Mar 2018 17:03:39 +1100 |
From: Mark Cave-Ayland <address@hidden>
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 <address@hidden>
Signed-off-by: David Gibson <address@hidden>
---
hw/intc/openpic_kvm.c | 1 +
hw/ppc/e500.c | 1 +
include/hw/ppc/openpic.h | 3 ---
include/hw/ppc/openpic_kvm.h | 7 +++++++
target/ppc/kvm-stub.c | 2 +-
5 files changed, 10 insertions(+), 4 deletions(-)
create mode 100644 include/hw/ppc/openpic_kvm.h
diff --git a/hw/intc/openpic_kvm.c b/hw/intc/openpic_kvm.c
index fa83420254..f1a59e5a85 100644
--- a/hw/intc/openpic_kvm.c
+++ b/hw/intc/openpic_kvm.c
@@ -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"
diff --git a/hw/ppc/e500.c b/hw/ppc/e500.c
index a40d3ec3e3..13a34f50b7 100644
--- a/hw/ppc/e500.c
+++ b/hw/ppc/e500.c
@@ -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"
diff --git a/include/hw/ppc/openpic.h b/include/hw/ppc/openpic.h
index e55ce546aa..693e981965 100644
--- a/include/hw/ppc/openpic.h
+++ b/include/hw/ppc/openpic.h
@@ -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
index 0000000000..9ef4215257
--- /dev/null
+++ b/include/hw/ppc/openpic_kvm.h
@@ -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 */
diff --git a/target/ppc/kvm-stub.c b/target/ppc/kvm-stub.c
index efeafca1df..b8aa97f2d4 100644
--- a/target/ppc/kvm-stub.c
+++ b/target/ppc/kvm-stub.c
@@ -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)
{
--
2.14.3
- [Qemu-ppc] [PULL 00/24] ppc-for-2.12 queue 20180302, David Gibson, 2018/03/02
- [Qemu-ppc] [PULL 01/24] spapr: fix missing CPU core nodes in DT when running with TCG, David Gibson, 2018/03/02
- [Qemu-ppc] [PULL 13/24] openpic: move KVM-specific declarations into separate openpic_kvm.h file,
David Gibson <=
- [Qemu-ppc] [PULL 04/24] spapr: register dummy ICPs later, David Gibson, 2018/03/02
- [Qemu-ppc] [PULL 05/24] spapr: harden code that depends on VSMT, David Gibson, 2018/03/02
- [Qemu-ppc] [PULL 09/24] heathrow: convert to trace-events, David Gibson, 2018/03/02
- [Qemu-ppc] [PULL 21/24] ppc/spapr-caps: Convert cap-sbbc to custom spapr-cap, David Gibson, 2018/03/02
- [Qemu-ppc] [PULL 11/24] macio: move macio related structures and defines into separate macio.h file, David Gibson, 2018/03/02
- [Qemu-ppc] [PULL 12/24] mac_oldworld: use object link to pass heathrow PIC object to macio, David Gibson, 2018/03/02
- [Qemu-ppc] [PULL 06/24] macio: embed DBDMA device directly within macio, David Gibson, 2018/03/02
- [Qemu-ppc] [PULL 10/24] heathrow: change heathrow_pic_init() to return the heathrow device, David Gibson, 2018/03/02
- [Qemu-ppc] [PULL 08/24] heathrow: QOMify heathrow PIC, David Gibson, 2018/03/02
- [Qemu-ppc] [PULL 18/24] target/ppc: Check mask when setting cap_ppc_safe_indirect_branch, David Gibson, 2018/03/02