diff options
author | Greg Kurz <groug@kaod.org> | 2019-03-13 15:54:06 +0100 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2019-03-19 15:20:14 +1100 |
commit | f3e971ac9b64067ec94aab11653f92f74ca084aa (patch) | |
tree | 67fc6c0ae8c4e9ca675395b48ef63bcceb005621 | |
parent | 26aa5b1eeb086a67efc859933e04137e79aeac78 (diff) | |
download | qemu-f3e971ac9b64067ec94aab11653f92f74ca084aa.zip qemu-f3e971ac9b64067ec94aab11653f92f74ca084aa.tar.gz qemu-f3e971ac9b64067ec94aab11653f92f74ca084aa.tar.bz2 |
ppc/pnv: Fix variable size in pnv_psi_power9_irq_set()
PSI registers are 64-bit.
Spotted by Coverity: CID 1399704
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <155248884690.893204.5428179144527749023.stgit@bahia.lan>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
-rw-r--r-- | hw/ppc/pnv_psi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/ppc/pnv_psi.c b/hw/ppc/pnv_psi.c index 5a923e4..5345c83 100644 --- a/hw/ppc/pnv_psi.c +++ b/hw/ppc/pnv_psi.c @@ -786,7 +786,7 @@ static const MemoryRegionOps pnv_psi_p9_xscom_ops = { static void pnv_psi_power9_irq_set(PnvPsi *psi, int irq, bool state) { - uint32_t irq_method = psi->regs[PSIHB_REG(PSIHB9_INTERRUPT_CONTROL)]; + uint64_t irq_method = psi->regs[PSIHB_REG(PSIHB9_INTERRUPT_CONTROL)]; if (irq > PSIHB9_NUM_IRQS) { qemu_log_mask(LOG_GUEST_ERROR, "PSI: Unsupported irq %d\n", irq); |