aboutsummaryrefslogtreecommitdiff
path: root/include/hw/intc
diff options
context:
space:
mode:
authorAlistair Francis <alistair.francis@wdc.com>2020-07-24 22:34:43 -0700
committerAlistair Francis <alistair.francis@wdc.com>2020-08-21 22:37:55 -0700
commit224914069d49cd186231000070d99ca04ee0550e (patch)
tree8664db4cb7d13c60cf152d3369a677327aa86a58 /include/hw/intc
parentc43388bbfd0999edacc269e7d06eeaaf19b9d320 (diff)
downloadqemu-224914069d49cd186231000070d99ca04ee0550e.zip
qemu-224914069d49cd186231000070d99ca04ee0550e.tar.gz
qemu-224914069d49cd186231000070d99ca04ee0550e.tar.bz2
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 ddc7909..d8eb09b 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;