projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d680ff6
)
hw/intc: sifive_plic: Cleanup the irq_request function
author
Alistair Francis
<alistair.francis@wdc.com>
Mon, 18 Oct 2021 02:39:41 +0000
(12:39 +1000)
committer
Alistair Francis
<alistair.francis@wdc.com>
Fri, 22 Oct 2021 13:35:47 +0000
(23:35 +1000)
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
hw/intc/sifive_plic.c
patch
|
blob
|
history
diff --git
a/hw/intc/sifive_plic.c
b/hw/intc/sifive_plic.c
index d77a5ced231f85dcd097b345a11455ebc9dd7920..877e76877ccf245d6e920790f3a7d7365e295dde 100644
(file)
--- 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)