From 999c14894fd39367443656bd9dbb61fd8f3c7075 Mon Sep 17 00:00:00 2001 From: Rohit Kurup Date: Tue, 27 Jun 2017 10:37:46 +0100 Subject: [PATCH] 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 --- src/dev/dma_device.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- 2.30.2