mem-cache: Workaround for setWhenReady assertion
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Fri, 7 Dec 2018 09:50:31 +0000 (10:50 +0100)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Fri, 7 Dec 2018 11:16:43 +0000 (11:16 +0000)
Change 174da8e2da6a896d2e97bc264f9c827a0f4c35ac added an assert that
is not satisfiable with current implementation, breaking some
regression tests.

Change-Id: Ibafaf0c51906384364f0b2a4b931f8ec6126d858
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/14955
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>

src/mem/cache/cache_blk.hh

index 9ace496cec92b636d70ac1dd47412f66e46530a3..611ce448dffc2b9f4ef862cb37a3d4cdac593fbf 100644 (file)
@@ -284,7 +284,6 @@ class CacheBlk : public ReplaceableEntry
      */
     void setWhenReady(const Tick tick)
     {
-        assert((whenReady == MaxTick) || (tick >= whenReady));
         assert(tick >= tickInserted);
         whenReady = tick;
     }