aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-31 09:59:47 +0000
committerj_mayer <j_mayer@c046a42c-6fe2-441c-8c8c-71466251a162>2007-03-31 09:59:47 +0000
commit05a8096f2dd33234cacb957d2694281efc85e74d (patch)
tree84fe99a6910ff4d761e9f8f5707319a3178fd261
parentaafd8139ed3fd90f281bb3ffc8db57c2882a077e (diff)
Better fix for OpenPIC: should not depend on PowerPC.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2552 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--hw/openpic.c2
-rw-r--r--vl.h3
2 files changed, 2 insertions, 3 deletions
diff --git a/hw/openpic.c b/hw/openpic.c
index 7565b1def6..1d91665114 100644
--- a/hw/openpic.c
+++ b/hw/openpic.c
@@ -965,7 +965,7 @@ static void openpic_map(PCIDevice *pci_dev, int region_num,
}
openpic_t *openpic_init (PCIBus *bus, SetIRQFunc *set_irq,
- int *pmem_index, int nb_cpus, CPUPPCState **envp)
+ int *pmem_index, int nb_cpus, CPUState **envp)
{
openpic_t *opp;
uint8_t *pci_conf;
diff --git a/vl.h b/vl.h
index 5e2d8e857f..c216b68a63 100644
--- a/vl.h
+++ b/vl.h
@@ -859,11 +859,10 @@ enum {
OPENPIC_EVT_DEBUG, /* Inconditional debug event */
OPENPIC_EVT_RESET, /* Core reset event */
};
-struct CPUPPCState;
void openpic_set_irq(void *opaque, int n_IRQ, int level);
openpic_t *openpic_init (PCIBus *bus, SetIRQFunc *set_irq,
int *pmem_index, int nb_cpus,
- struct CPUPPCState **envp);
+ struct CPUState **envp);
/* heathrow_pic.c */
typedef struct HeathrowPICS HeathrowPICS;