1
0

Fix I$ miss perfctr

The old version was counting prefetches, too.
This commit is contained in:
Andrew Waterman
2017-08-03 00:52:12 -07:00
parent 1be1433f04
commit f483bab4aa
2 changed files with 9 additions and 1 deletions

View File

@ -285,7 +285,7 @@ class FrontendModule(outer: Frontend) extends LazyModuleImp(outer)
io.cpu.resp <> fq.io.deq
// performance events
io.cpu.perf.acquire := edge.done(icache.io.tl_out(0).a)
io.cpu.perf := icache.io.perf
io.cpu.perf.tlbMiss := io.ptw.req.fire()
def alignPC(pc: UInt) = ~(~pc | (coreInstBytes - 1))