summaryrefslogtreecommitdiffstats
path: root/include/hw/intc
diff options
context:
space:
mode:
authorAlistair Francis2020-07-25 07:34:43 +0200
committerAlistair Francis2020-08-22 07:37:55 +0200
commit224914069d49cd186231000070d99ca04ee0550e (patch)
tree8664db4cb7d13c60cf152d3369a677327aa86a58 /include/hw/intc
parenthw/intc: ibex_plic: Update the pending irqs (diff)
downloadqemu-224914069d49cd186231000070d99ca04ee0550e.tar.gz
qemu-224914069d49cd186231000070d99ca04ee0550e.tar.xz
qemu-224914069d49cd186231000070d99ca04ee0550e.zip
hw/intc: ibex_plic: Don't allow repeat interrupts on claimed lines
Once an interrupt has been claimed, but before it has been compelted we shouldn't receive any more pending interrupts. This patche keeps track of this to ensure that we don't see any more interrupts until it is completed. Signed-off-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <394c3f070615ff2b4fab61a1cf9cb48c122913b7.1595655188.git.alistair.francis@wdc.com>
Diffstat (limited to 'include/hw/intc')
-rw-r--r--include/hw/intc/ibex_plic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/hw/intc/ibex_plic.h b/include/hw/intc/ibex_plic.h
index ddc7909903..d8eb09b258 100644
--- a/include/hw/intc/ibex_plic.h
+++ b/include/hw/intc/ibex_plic.h
@@ -33,6 +33,7 @@ typedef struct IbexPlicState {
MemoryRegion mmio;
uint32_t *pending;
+ uint32_t *claimed;
uint32_t *source;
uint32_t *priority;
uint32_t *enable;