1
0

Don't double-count release traffic in perfctrs

This commit is contained in:
Andrew Waterman 2017-03-09 16:49:02 -08:00
parent 63f8ce36f6
commit b24c43badb
3 changed files with 5 additions and 5 deletions

View File

@ -505,6 +505,6 @@ class DCacheModule(outer: DCache) extends HellaCacheModule(outer) {
} }
// performance events // performance events
io.cpu.acquire := tl_out.a.fire() io.cpu.acquire := edge.last(tl_out.a)
io.cpu.release := tl_out.c.fire() io.cpu.release := edge.last(tl_out.c)
} }

View File

@ -155,7 +155,7 @@ class FrontendModule(outer: Frontend) extends LazyModuleImp(outer)
io.cpu.resp.bits.btb.bits := s2_btb_resp_bits io.cpu.resp.bits.btb.bits := s2_btb_resp_bits
// performance events // performance events
io.cpu.acquire := icache.io.mem(0).a.fire() io.cpu.acquire := edge.last(icache.io.mem(0).a)
} }
/** Mix-ins for constructing tiles that have an ICache-based pipeline frontend */ /** Mix-ins for constructing tiles that have an ICache-based pipeline frontend */

View File

@ -975,6 +975,6 @@ class NonBlockingDCacheModule(outer: NonBlockingDCache) extends HellaCacheModule
io.cpu.replay_next := (s1_replay && s1_read) || mshrs.io.replay_next io.cpu.replay_next := (s1_replay && s1_read) || mshrs.io.replay_next
// performance events // performance events
io.cpu.acquire := tl_out.a.fire() io.cpu.acquire := edge.last(tl_out.a)
io.cpu.release := tl_out.c.fire() io.cpu.release := edge.last(tl_out.c)
} }