[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 5/9] hw/intc: sifive_plic: Cleanup the irq_request function
From: |
Alistair Francis |
Subject: |
[PATCH v1 5/9] hw/intc: sifive_plic: Cleanup the irq_request function |
Date: |
Mon, 18 Oct 2021 12:39:41 +1000 |
From: Alistair Francis <alistair.francis@wdc.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
hw/intc/sifive_plic.c | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/hw/intc/sifive_plic.c b/hw/intc/sifive_plic.c
index d77a5ced23..877e76877c 100644
--- a/hw/intc/sifive_plic.c
+++ b/hw/intc/sifive_plic.c
@@ -412,12 +412,10 @@ static void parse_hart_config(SiFivePLICState *plic)
static void sifive_plic_irq_request(void *opaque, int irq, int level)
{
- SiFivePLICState *plic = opaque;
- if (RISCV_DEBUG_PLIC) {
- qemu_log("sifive_plic_irq_request: irq=%d level=%d\n", irq, level);
- }
- sifive_plic_set_pending(plic, irq, level > 0);
- sifive_plic_update(plic);
+ SiFivePLICState *s = opaque;
+
+ sifive_plic_set_pending(s, irq, level > 0);
+ sifive_plic_update(s);
}
static void sifive_plic_realize(DeviceState *dev, Error **errp)
--
2.31.1
- [PATCH v1 1/9] hw/riscv: opentitan: Update to the latest build, Alistair Francis, 2021/10/17
- [PATCH v1 2/9] hw/intc: Remove the Ibex PLIC, Alistair Francis, 2021/10/17
- [PATCH v1 3/9] hw/intc: sifive_plic: Move the properties, Alistair Francis, 2021/10/17
- [PATCH v1 4/9] hw/intc: sifive_plic: Cleanup the realize function, Alistair Francis, 2021/10/17
- [PATCH v1 5/9] hw/intc: sifive_plic: Cleanup the irq_request function,
Alistair Francis <=
- [PATCH v1 6/9] hw/intc: sifive_plic: Add a reset function, Alistair Francis, 2021/10/17
- [PATCH v1 7/9] hw/intc: sifive_plic: Cleanup the write function, Alistair Francis, 2021/10/17
- [PATCH v1 8/9] hw/intc: sifive_plic: Cleanup the read function, Alistair Francis, 2021/10/17
- [PATCH v1 9/9] hw/intc: sifive_plic: Cleanup remaining functions, Alistair Francis, 2021/10/17