From 15835607574917b48bc8de4bd32cf9621241f925 Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Mon, 28 Oct 2013 22:35:18 -0700 Subject: [PATCH] fix replay bug, don't respond when cmd is a NOP --- rocket/src/main/scala/nbdcache.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rocket/src/main/scala/nbdcache.scala b/rocket/src/main/scala/nbdcache.scala index 251aa17b..9d5c9dbc 100644 --- a/rocket/src/main/scala/nbdcache.scala +++ b/rocket/src/main/scala/nbdcache.scala @@ -310,7 +310,7 @@ class MSHR(id: Int)(implicit conf: DCacheConfig, tl: TileLinkConfiguration) exte when (!io.meta_read.ready) { rpq.io.deq.ready := Bool(false) - io.replay.bits.cmd := M_FENCE // NOP + io.replay.bits.cmd := M_NOP } } @@ -751,7 +751,7 @@ class HellaCache(implicit conf: DCacheConfig, tl: TileLinkConfiguration) extends val s2_valid = Reg(next=s1_valid_masked, init=Bool(false)) val s2_req = Reg(io.cpu.req.bits.clone) - val s2_replay = Reg(next=s1_replay, init=Bool(false)) + val s2_replay = Reg(next=s1_replay, init=Bool(false)) && s2_req.cmd != M_NOP val s2_recycle = Bool() val s2_valid_masked = Bool()