From b7e3c61391167ec896c84423772a713a1193fdbc Mon Sep 17 00:00:00 2001 From: liuyic00 Date: Sat, 17 Aug 2024 21:18:47 +0800 Subject: [PATCH] Support new rsc with more config (#5) * feat: support rsc with more config corresponding riscv-spec-core 74c204bf0de3a744da8ccdf104fb7954a4c8fda4 --- src/main/scala/nutcore/NutCore.scala | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/scala/nutcore/NutCore.scala b/src/main/scala/nutcore/NutCore.scala index 12c261d0..3a74703c 100644 --- a/src/main/scala/nutcore/NutCore.scala +++ b/src/main/scala/nutcore/NutCore.scala @@ -71,7 +71,12 @@ case class NutCoreConfig ( EnableILA: Boolean = Settings.get("EnableILA"), EnableDebug: Boolean = Settings.get("EnableDebug"), EnhancedLog: Boolean = true , - FormalConfig: RVConfig = RVConfig(64, "MCS", "A") + FormalConfig: RVConfig = RVConfig( + "XLEN" -> 64, + "extensions" -> "MCZicsrZifenceiSU", + "fakeExtensions" -> "A", + "functions" -> Seq("Privileged") + ) ) // Enable EnhancedLog will slow down simulation, // but make it possible to control debug log using emu parameter