From 56d81b0034106d5fac59313b0e0e51ca98afe9a4 Mon Sep 17 00:00:00 2001 From: Yunsup Lee Date: Tue, 6 Sep 2016 10:40:11 -0700 Subject: [PATCH] fix configstring printout with no memory --- src/main/scala/rocketchip/Configs.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/rocketchip/Configs.scala b/src/main/scala/rocketchip/Configs.scala index 916188ee..66344e9e 100644 --- a/src/main/scala/rocketchip/Configs.scala +++ b/src/main/scala/rocketchip/Configs.scala @@ -73,8 +73,8 @@ class BasePlatformConfig extends Config ( res append s" size 0x${addrMap("mem").size.toString(16)};\n" res append " };\n" res append "};\n" - res append "core {\n" } + res append "core {\n" for (i <- 0 until site(NTiles)) { // TODO heterogeneous tiles val isa = s"rv${site(XLen)}i${site(MulDivKey).map(x=>"m").mkString}${if (site(UseAtomics)) "a" else ""}${if (site(FPUKey).nonEmpty) "fd" else ""}" res append s" $i {\n" @@ -95,7 +95,7 @@ class BasePlatformConfig extends Config ( res append s" claim 0x${(plicAddr + plicInfo.claimAddr(i, 'S')).toString(16)};\n" res append s" };\n" } - res append s" };\n" + res append " };\n" res append " };\n" res append " };\n" }