diff --git a/src/main/scala/top/ArgParser.scala b/src/main/scala/top/ArgParser.scala index 918433e6be2..fc851ef82c8 100644 --- a/src/main/scala/top/ArgParser.scala +++ b/src/main/scala/top/ArgParser.scala @@ -131,6 +131,10 @@ object ArgParser { nextOption(config.alter((site, here, up) => { case DebugOptionsKey => up(DebugOptionsKey).copy(EnablePerfDebug = false) }), tail) + case "--perf-level" :: value :: tail => + nextOption(config.alter((site, here, up) => { + case DebugOptionsKey => up(DebugOptionsKey).copy(PerfLevel = value) + }), tail) case "--disable-alwaysdb" :: tail => nextOption(config.alter((site, here, up) => { case DebugOptionsKey => up(DebugOptionsKey).copy(AlwaysBasicDB = false) @@ -202,6 +206,7 @@ object ArgParser { case PerfCounterOptionsKey => PerfCounterOptions( here(DebugOptionsKey).EnablePerfDebug && !here(DebugOptionsKey).FPGAPlatform, here(DebugOptionsKey).EnableRollingDB && !here(DebugOptionsKey).FPGAPlatform, + XSPerfLevel.withName(here(DebugOptionsKey).PerfLevel), 0 ) }) diff --git a/src/main/scala/xiangshan/Parameters.scala b/src/main/scala/xiangshan/Parameters.scala index c48398b9d20..e397c707cb8 100644 --- a/src/main/scala/xiangshan/Parameters.scala +++ b/src/main/scala/xiangshan/Parameters.scala @@ -569,6 +569,7 @@ case class DebugOptions AlwaysBasicDiff: Boolean = true, EnableDebug: Boolean = false, EnablePerfDebug: Boolean = true, + PerfLevel: String = "VERBOSE", UseDRAMSim: Boolean = false, EnableConstantin: Boolean = false, EnableChiselDB: Boolean = false, diff --git a/utility b/utility index 74e73cbd244..6ed7394ef85 160000 --- a/utility +++ b/utility @@ -1 +1 @@ -Subproject commit 74e73cbd2444fb3c7decaff4aa167e79dc7380a7 +Subproject commit 6ed7394ef85887ea360f33b3be97bb13fb31e57c