Skip to content

Commit

Permalink
openpic: move KVM-specific declarations into separate openpic_kvm.h file
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
mcayland authored and dgibson committed Mar 6, 2018
1 parent 017812d commit 8d085cf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions hw/intc/openpic_kvm.c
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions hw/ppc/e500.c
Expand Up @@ -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"
Expand Down
3 changes: 0 additions & 3 deletions include/hw/ppc/openpic.h
Expand Up @@ -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 */
7 changes: 7 additions & 0 deletions 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 */
2 changes: 1 addition & 1 deletion target/ppc/kvm-stub.c
Expand Up @@ -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)
{
Expand Down

0 comments on commit 8d085cf

Please sign in to comment.