summaryrefslogtreecommitdiffstats
path: root/include/hw/ppc
diff options
context:
space:
mode:
authorCédric Le Goater2019-11-25 07:58:05 +0100
committerDavid Gibson2019-12-17 00:39:47 +0100
commit4a89e20458ef6ef0979d9a05e41b421fe28a90a8 (patch)
tree0c79eaa027986f395e77682226d5d1b45120cbc3 /include/hw/ppc
parentppc/pnv: Loop on the threads of the chip to find a matching NVT (diff)
downloadqemu-4a89e20458ef6ef0979d9a05e41b421fe28a90a8.tar.gz
qemu-4a89e20458ef6ef0979d9a05e41b421fe28a90a8.tar.xz
qemu-4a89e20458ef6ef0979d9a05e41b421fe28a90a8.zip
ppc: Introduce a ppc_cpu_pir() helper
Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20191125065820.927-6-clg@kaod.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'include/hw/ppc')
-rw-r--r--include/hw/ppc/ppc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/ppc/ppc.h b/include/hw/ppc/ppc.h
index 4bdcb8bacd..585be6ab98 100644
--- a/include/hw/ppc/ppc.h
+++ b/include/hw/ppc/ppc.h
@@ -5,6 +5,7 @@
void ppc_set_irq(PowerPCCPU *cpu, int n_IRQ, int level);
PowerPCCPU *ppc_get_vcpu_by_pir(int pir);
+int ppc_cpu_pir(PowerPCCPU *cpu);
/* PowerPC hardware exceptions management helpers */
typedef void (*clk_setup_cb)(void *opaque, uint32_t freq);