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 = {