From: Rohit Kurup Date: Tue, 27 Jun 2017 09:37:46 +0000 (+0100) Subject: dev: Fix OnIdle test in DmaReadFifo X-Git-Tag: v19.0.0.0~2704 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=999c14894fd39367443656bd9dbb61fd8f3c7075;p=gem5.git dev: Fix OnIdle test in DmaReadFifo OnIdle() is never called since DMA active check is completely opposite to what it should be. old active status should be 'true' and new active status should be false for OnIdle to be called Change-Id: I94eca50edbe96113190837c7f6e50a0d061158a6 Reported-by: Rohit Kurup Signed-off-by: Rohit Kurup Signed-off-by: Andreas Sandberg Reviewed-on: https://gem5-review.googlesource.com/3966 Reviewed-by: Michael LeBeane --- diff --git a/src/dev/dma_device.cc b/src/dev/dma_device.cc index a78819a3e..f6f751c05 100644 --- a/src/dev/dma_device.cc +++ b/src/dev/dma_device.cc @@ -438,7 +438,7 @@ DmaReadFifo::dmaDone() handlePending(); resumeFill(); - if (!old_active && isActive()) + if (old_active && !isActive()) onIdle(); }