From de1c9c6fea049fabb38cadd03596799f5bcf0d90 Mon Sep 17 00:00:00 2001 From: Charles Papon Date: Wed, 3 Apr 2019 14:47:00 +0200 Subject: [PATCH] Removing D$ reports --- .../vexriscv/plugin/DBusCachedPlugin.scala | 38 +++++++++---------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/src/main/scala/vexriscv/plugin/DBusCachedPlugin.scala b/src/main/scala/vexriscv/plugin/DBusCachedPlugin.scala index 55bd7df..defe9f3 100644 --- a/src/main/scala/vexriscv/plugin/DBusCachedPlugin.scala +++ b/src/main/scala/vexriscv/plugin/DBusCachedPlugin.scala @@ -119,25 +119,25 @@ class DBusCachedPlugin(config : DataCacheConfig, if(pipeline.serviceExist(classOf[PrivilegeService])) privilegeService = pipeline.service(classOf[PrivilegeService]) - if(pipeline.serviceExist(classOf[ReportService])){ - val report = pipeline.service(classOf[ReportService]) - report.add("dBus" -> { - val e = new BusReport() - val c = new CacheReport() - e.kind = "cached" - e.flushInstructions.add(0x13 | (1 << 7)) ////ADDI x1, x0, 0 - for(idx <- 0 until cacheSize by bytePerLine){ - e.flushInstructions.add(0x7000500F + (1 << 15)) //Clean invalid data cache way x1 - e.flushInstructions.add(0x13 + (1 << 7) + (1 << 15) + (bytePerLine << 20)) //ADDI x1, x1, 32 - } - - e.info = c - c.size = cacheSize - c.bytePerLine = bytePerLine - - e - }) - } +// if(pipeline.serviceExist(classOf[ReportService])){ +// val report = pipeline.service(classOf[ReportService]) +// report.add("dBus" -> { +// val e = new BusReport() +// val c = new CacheReport() +// e.kind = "cached" +// e.flushInstructions.add(0x13 | (1 << 7)) ////ADDI x1, x0, 0 +// for(idx <- 0 until cacheSize by bytePerLine){ +// e.flushInstructions.add(0x7000500F + (1 << 15)) //Clean invalid data cache way x1 +// e.flushInstructions.add(0x13 + (1 << 7) + (1 << 15) + (bytePerLine << 20)) //ADDI x1, x1, 32 +// } +// +// e.info = c +// c.size = cacheSize +// c.bytePerLine = bytePerLine +// +// e +// }) +// } } override def build(pipeline: VexRiscv): Unit = {