aboutsummaryrefslogtreecommitdiff
path: root/riscv/sim.h
diff options
context:
space:
mode:
authordave-estes-syzexion <53795406+dave-estes-syzexion@users.noreply.github.com>2019-09-18 14:14:56 -0400
committerAndrew Waterman <andrew@sifive.com>2019-09-18 11:14:56 -0700
commitc171379c7828ae94d969846874a7ac542dbda2c3 (patch)
tree872b8242f3178d86c7371a1a1a10e960a98539a7 /riscv/sim.h
parent6d15c93fd75db322981fe58ea1db13035e0f7add (diff)
downloadspike-c171379c7828ae94d969846874a7ac542dbda2c3.zip
spike-c171379c7828ae94d969846874a7ac542dbda2c3.tar.gz
spike-c171379c7828ae94d969846874a7ac542dbda2c3.tar.bz2
Adds --log-commits commandline option. (#323)
* Adds --log-commits commandline option. Similar to histogram support, the commit logging feature must be enabled with a configure option: --enable-commitlog. However, unlike that feature, there was no way to turn off the logging with a commandline option once the functionality was built in. This (git) commit provides that abilty. * Changes addressing review feedback.
Diffstat (limited to 'riscv/sim.h')
-rw-r--r--riscv/sim.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/riscv/sim.h b/riscv/sim.h
index 57d1148..0720ce4 100644
--- a/riscv/sim.h
+++ b/riscv/sim.h
@@ -33,6 +33,7 @@ public:
void set_debug(bool value);
void set_log(bool value);
void set_histogram(bool value);
+ void set_log_commits(bool value);
void set_procs_debug(bool value);
void set_dtb_enabled(bool value) {
this->dtb_enabled = value;
@@ -68,6 +69,7 @@ private:
bool debug;
bool log;
bool histogram_enabled; // provide a histogram of PCs
+ bool log_commits_enabled;
bool dtb_enabled;
remote_bitbang_t* remote_bitbang;