diff options
author | Cédric Le Goater | 2019-11-25 07:58:05 +0100 |
---|---|---|
committer | David Gibson | 2019-12-17 00:39:47 +0100 |
commit | 4a89e20458ef6ef0979d9a05e41b421fe28a90a8 (patch) | |
tree | 0c79eaa027986f395e77682226d5d1b45120cbc3 /include/hw/ppc | |
parent | ppc/pnv: Loop on the threads of the chip to find a matching NVT (diff) | |
download | qemu-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.h | 1 |
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); |