From 630600d860a0ff0ec1e290931d301cc6f2b96fe0 Mon Sep 17 00:00:00 2001 From: John Ingalls <43973001+ingallsj@users.noreply.github.com> Date: Thu, 29 Oct 2020 11:22:18 -0700 Subject: [PATCH] PTW do not count pte_miss on leaf walk level (#2692) --- src/main/scala/rocket/PTW.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/rocket/PTW.scala b/src/main/scala/rocket/PTW.scala index 52d972562a..38eb494e54 100644 --- a/src/main/scala/rocket/PTW.scala +++ b/src/main/scala/rocket/PTW.scala @@ -322,7 +322,7 @@ class PTW(n: Int)(implicit edge: TLEdgeOut, p: Parameters) extends CoreModule()( } is (s_wait2) { next_state := s_wait3 - io.dpath.perf.pte_miss := true + io.dpath.perf.pte_miss := count < pgLevels-1 when (io.mem.s2_xcpt.ae.ld) { resp_ae := true next_state := s_ready