mirror of
https://github.com/qemu/qemu.git
synced 2025-08-16 23:02:44 +00:00
hw/intc: sifive_plic: Cleanup the irq_request function
Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> Message-id: 4200da222a65c89ed1ba35f754dcca7fdd9f08d6.1634524691.git.alistair.francis@wdc.com
This commit is contained in:
parent
d680ff664e
commit
8d3dae162e
@ -412,12 +412,10 @@ static void parse_hart_config(SiFivePLICState *plic)
|
|||||||
|
|
||||||
static void sifive_plic_irq_request(void *opaque, int irq, int level)
|
static void sifive_plic_irq_request(void *opaque, int irq, int level)
|
||||||
{
|
{
|
||||||
SiFivePLICState *plic = opaque;
|
SiFivePLICState *s = opaque;
|
||||||
if (RISCV_DEBUG_PLIC) {
|
|
||||||
qemu_log("sifive_plic_irq_request: irq=%d level=%d\n", irq, level);
|
sifive_plic_set_pending(s, irq, level > 0);
|
||||||
}
|
sifive_plic_update(s);
|
||||||
sifive_plic_set_pending(plic, irq, level > 0);
|
|
||||||
sifive_plic_update(plic);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void sifive_plic_realize(DeviceState *dev, Error **errp)
|
static void sifive_plic_realize(DeviceState *dev, Error **errp)
|
||||||
|
Loading…
Reference in New Issue
Block a user