diff options
author | dave-estes-syzexion <53795406+dave-estes-syzexion@users.noreply.github.com> | 2019-09-18 14:14:56 -0400 |
---|---|---|
committer | Chih-Min Chao <chihmin.chao@sifive.com> | 2019-09-29 22:27:14 -0700 |
commit | 66c4933e1a23c4504188f391ffc4886de09f9e91 (patch) | |
tree | 51f8601bda035cb97f62ea5d4f3ab5c6134519af /riscv/sim.h | |
parent | f353f81f6279ee0b51b778f68abf9bfb682f7264 (diff) | |
download | spike-66c4933e1a23c4504188f391ffc4886de09f9e91.zip spike-66c4933e1a23c4504188f391ffc4886de09f9e91.tar.gz spike-66c4933e1a23c4504188f391ffc4886de09f9e91.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.h | 2 |
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; |