feat(build): add `DISABLE_XMR` to use `bore` instead of `tapAndRead` (#4976)
This commit is contained in:
parent
143ba1cb97
commit
be7a8a40a4
5
Makefile
5
Makefile
|
@ -141,6 +141,11 @@ ifneq ($(HART_ID_BITS),)
|
|||
COMMON_EXTRA_ARGS += --hartidbits $(HART_ID_BITS)
|
||||
endif
|
||||
|
||||
# disable xmr
|
||||
ifeq ($(DISABLE_XMR),1)
|
||||
COMMON_EXTRA_ARGS += --disable-xmr
|
||||
endif
|
||||
|
||||
# configuration from yaml file
|
||||
ifneq ($(YAML_CONFIG),)
|
||||
COMMON_EXTRA_ARGS += --yaml-config $(YAML_CONFIG)
|
||||
|
|
|
@ -218,6 +218,10 @@ object ArgParser {
|
|||
nextOption(config.alter((site, here, up) => {
|
||||
case XSTileKey => up(XSTileKey).map(_.copy(wfiResume = value.toBoolean))
|
||||
}), tail)
|
||||
case "--disable-xmr" :: tail =>
|
||||
nextOption(config.alter((site, here, up) => {
|
||||
case DebugOptionsKey => up(DebugOptionsKey).copy(EnableXMR = false)
|
||||
}), tail)
|
||||
case "--yaml-config" :: yamlFile :: tail =>
|
||||
nextOption(YamlParser.parseYaml(config, yamlFile), tail)
|
||||
case option :: tail =>
|
||||
|
@ -229,15 +233,16 @@ object ArgParser {
|
|||
val (newArgs, firtoolOptions) = DifftestModule.parseArgs(args)
|
||||
val config = nextOption(default, newArgs.toList).alter((site, here, up) => {
|
||||
case LogUtilsOptionsKey => LogUtilsOptions(
|
||||
here(DebugOptionsKey).EnableDebug,
|
||||
here(DebugOptionsKey).EnablePerfDebug,
|
||||
here(DebugOptionsKey).FPGAPlatform
|
||||
enableDebug = here(DebugOptionsKey).EnableDebug,
|
||||
enablePerf = here(DebugOptionsKey).EnablePerfDebug,
|
||||
fpgaPlatform = here(DebugOptionsKey).FPGAPlatform,
|
||||
enableXMR = here(DebugOptionsKey).EnableXMR
|
||||
)
|
||||
case PerfCounterOptionsKey => PerfCounterOptions(
|
||||
here(DebugOptionsKey).EnablePerfDebug && !here(DebugOptionsKey).FPGAPlatform,
|
||||
here(DebugOptionsKey).EnableRollingDB && !here(DebugOptionsKey).FPGAPlatform,
|
||||
XSPerfLevel.withName(here(DebugOptionsKey).PerfLevel),
|
||||
0
|
||||
enablePerfPrint = here(DebugOptionsKey).EnablePerfDebug && !here(DebugOptionsKey).FPGAPlatform,
|
||||
enablePerfDB = here(DebugOptionsKey).EnableRollingDB && !here(DebugOptionsKey).FPGAPlatform,
|
||||
perfLevel = XSPerfLevel.withName(here(DebugOptionsKey).PerfLevel),
|
||||
perfDBHartID = 0
|
||||
)
|
||||
})
|
||||
(config, firrtlOpts, firtoolOpts ++ firtoolOptions.map(_.option))
|
||||
|
|
|
@ -557,6 +557,7 @@ case class DebugOptions
|
|||
EnableDebug: Boolean = false,
|
||||
EnablePerfDebug: Boolean = true,
|
||||
PerfLevel: String = "VERBOSE",
|
||||
EnableXMR: Boolean = true,
|
||||
UseDRAMSim: Boolean = false,
|
||||
EnableConstantin: Boolean = false,
|
||||
EnableChiselDB: Boolean = false,
|
||||
|
|
|
@ -16,7 +16,8 @@ class FrontendTriggerTest extends AnyFlatSpec with ChiselScalatestTester with Ma
|
|||
case LogUtilsOptionsKey => LogUtilsOptions(
|
||||
here(DebugOptionsKey).EnableDebug,
|
||||
here(DebugOptionsKey).EnablePerfDebug,
|
||||
here(DebugOptionsKey).FPGAPlatform
|
||||
here(DebugOptionsKey).FPGAPlatform,
|
||||
here(DebugOptionsKey).EnableXMR
|
||||
)
|
||||
})
|
||||
|
||||
|
|
2
utility
2
utility
|
@ -1 +1 @@
|
|||
Subproject commit 8ef84f12393af527dfd1dc073549fa336332eff1
|
||||
Subproject commit 40180f69c2256f228ca9949f19179f550031d5db
|
Loading…
Reference in New Issue