diff options
author | Eric Auger <eric.auger@redhat.com> | 2018-09-25 14:02:32 +0100 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-09-25 15:13:24 +0100 |
commit | 9f4d2a1316fc294da5c0646fa93894d5f5f0c9a0 (patch) | |
tree | bda1ea86fbc6ddb5a029b17654aec95278040610 /hw/arm/smmuv3.c | |
parent | 6ce9297be69be10465b556a4b3380f70634c16a7 (diff) | |
download | qemu-9f4d2a1316fc294da5c0646fa93894d5f5f0c9a0.zip qemu-9f4d2a1316fc294da5c0646fa93894d5f5f0c9a0.tar.gz qemu-9f4d2a1316fc294da5c0646fa93894d5f5f0c9a0.tar.bz2 |
hw/arm/smmuv3: fix eventq recording and IRQ triggerring
The event queue management is broken today. Event records
are not properly written as EVT_SET_* macro was not updating
the actual event record. Also the event queue interrupt
is not correctly triggered.
Fixes: bb981004eaf4 ("hw/arm/smmuv3: Event queue recording helper")
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Message-id: 20180921070138.10114-3-eric.auger@redhat.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/arm/smmuv3.c')
-rw-r--r-- | hw/arm/smmuv3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/arm/smmuv3.c b/hw/arm/smmuv3.c index bb6a24e..8c4e99f 100644 --- a/hw/arm/smmuv3.c +++ b/hw/arm/smmuv3.c @@ -136,7 +136,7 @@ static MemTxResult smmuv3_write_eventq(SMMUv3State *s, Evt *evt) return r; } - if (smmuv3_q_empty(q)) { + if (!smmuv3_q_empty(q)) { smmuv3_trigger_irq(s, SMMU_IRQ_EVTQ, 0); } return MEMTX_OK; |