From 7bef935d2a7aed8329fd37c21ff7043da87902fd Mon Sep 17 00:00:00 2001 From: Andrew Waterman Date: Fri, 3 Nov 2017 15:03:27 -0700 Subject: [PATCH] Don't emit PTW covers when !usingVM --- src/main/scala/rocket/PTW.scala | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/main/scala/rocket/PTW.scala b/src/main/scala/rocket/PTW.scala index 43fe7497..47192482 100644 --- a/src/main/scala/rocket/PTW.scala +++ b/src/main/scala/rocket/PTW.scala @@ -279,13 +279,11 @@ class PTW(n: Int)(implicit edge: TLEdgeOut, p: Parameters) extends CoreModule()( count := pgLevels-1 } - if (usingVM) { - ccover(io.mem.s2_nack, "NACK", "D$ nacked page-table access") - ccover(state === s_wait2 && io.mem.s2_xcpt.ae.ld, "AE", "access exception while walking page table") - } + ccover(io.mem.s2_nack, "NACK", "D$ nacked page-table access") + ccover(state === s_wait2 && io.mem.s2_xcpt.ae.ld, "AE", "access exception while walking page table") def ccover(cond: Bool, label: String, desc: String)(implicit sourceInfo: SourceInfo) = - cover(cond, s"PTW_$label", "MemorySystem;;" + desc) + if (usingVM) cover(cond, s"PTW_$label", "MemorySystem;;" + desc) } /** Mix-ins for constructing tiles that might have a PTW */