Don't emit PTW covers when !usingVM
This commit is contained in:
		@@ -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")
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  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 */
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user