From e9cadf29d281920fc886a3a19a4675930845a09d Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Thu, 23 Mar 2017 13:18:32 -0700 Subject: [PATCH] Improve DCache MMIO QoR No need to store the cmd field. From the perspective of the cache, all MMIO responses that have data can be treated the same as loads. --- src/main/scala/rocket/DCache.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/rocket/DCache.scala b/src/main/scala/rocket/DCache.scala index 0e432939..b450627d 100644 --- a/src/main/scala/rocket/DCache.scala +++ b/src/main/scala/rocket/DCache.scala @@ -312,7 +312,7 @@ class DCacheModule(outer: DCache) extends HellaCacheModule(outer) { val req = uncachedReqs(tl_out.d.bits.source) when (grantIsUncachedData) { s2_data := tl_out.d.bits.data - s2_req.cmd := req.cmd + s2_req.cmd := M_XRD s2_req.typ := req.typ s2_req.tag := req.tag s2_req.addr := Cat(s1_paddr >> beatOffBits /* don't-care */, req.addr(beatOffBits-1, 0))