ppc/pnv: Remove useless checks in set_irq handlers
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Signed-off-by: Cédric Le Goater <clg@kaod.org> Message-Id: <20220323072846.1780212-6-clg@kaod.org> Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
This commit is contained in:
parent
dcf4ca4514
commit
354ff1557a
@ -219,11 +219,6 @@ static void pnv_psi_power8_set_irq(void *opaque, int irq, int state)
|
|||||||
uint32_t src;
|
uint32_t src;
|
||||||
bool masked;
|
bool masked;
|
||||||
|
|
||||||
if (irq > PSIHB_IRQ_EXTERNAL) {
|
|
||||||
qemu_log_mask(LOG_GUEST_ERROR, "PSI: Unsupported irq %d\n", irq);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
xivr_reg = xivr_regs[irq];
|
xivr_reg = xivr_regs[irq];
|
||||||
stat_reg = stat_regs[irq];
|
stat_reg = stat_regs[irq];
|
||||||
|
|
||||||
@ -813,11 +808,6 @@ static void pnv_psi_power9_set_irq(void *opaque, int irq, int state)
|
|||||||
PnvPsi *psi = opaque;
|
PnvPsi *psi = opaque;
|
||||||
uint64_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);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (irq_method & PSIHB9_IRQ_METHOD) {
|
if (irq_method & PSIHB9_IRQ_METHOD) {
|
||||||
qemu_log_mask(LOG_GUEST_ERROR, "PSI: LSI IRQ method no supported\n");
|
qemu_log_mask(LOG_GUEST_ERROR, "PSI: LSI IRQ method no supported\n");
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user