From 2db00edabdeb183e798fe1d1b4122c74ccd50736 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Fri, 27 Oct 2023 22:15:24 +0200 Subject: [PATCH] updates CLI to support core selection --- src/CLIParser.cpp | 2 ++ src/sc_main.cpp | 1 + tgc-iss/dbt-rise-tgc | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/CLIParser.cpp b/src/CLIParser.cpp index 25e6924..02e81ff 100644 --- a/src/CLIParser.cpp +++ b/src/CLIParser.cpp @@ -83,6 +83,8 @@ void CLIParser::build() { "enable gdb server and specify port to use") ("backend", po::value()->default_value("interp"), "the ISS backend to use, options are: interp, tcc") + ("isa", po::value()->default_value("tgc5c"), + "core or isa name to use for simulation, use '?' to get list") ("dump-ir", "dump the intermediate representation") ("dump-structure", po::value(), diff --git a/src/sc_main.cpp b/src/sc_main.cpp index b05e224..d0d8f6a 100644 --- a/src/sc_main.cpp +++ b/src/sc_main.cpp @@ -97,6 +97,7 @@ int sc_main(int argc, char *argv[]) { cfg.set_value(core_path + ".gdb_server_port", parser.get("gdb-port")); cfg.set_value(core_path + ".dump_ir", parser.is_set("dump-ir")); cfg.set_value(core_path + ".backend", parser.get("backend")); + cfg.set_value(core_path + ".core_type", parser.get("isa")); if(parser.is_set("plugin")){ auto plugins = util::join(parser.get>("plugin"),","); cfg.set_value(core_path + ".plugins", plugins); diff --git a/tgc-iss/dbt-rise-tgc b/tgc-iss/dbt-rise-tgc index e6f1108..7001b69 160000 --- a/tgc-iss/dbt-rise-tgc +++ b/tgc-iss/dbt-rise-tgc @@ -1 +1 @@ -Subproject commit e6f11081eba931b8d2a783939fa13f60448e6404 +Subproject commit 7001b693ae6cdd14671df5d42bde13b4cfb48028