aboutsummaryrefslogtreecommitdiff
path: root/fesvr
diff options
context:
space:
mode:
authorRupert Swarbrick <rswarbrick@gmail.com>2020-03-27 10:25:20 +0000
committerChih-Min Chao <chihmin.chao@sifive.com>2020-04-05 22:35:36 -0700
commit414cf9ae675e5c437528abfcb758f1b127d86dce (patch)
tree4f41c41466be285e981ae0ae30401279a7b36cc1 /fesvr
parent59847b98f014d1f672fa6e26f9f288ffa72ead7c (diff)
downloadspike-414cf9ae675e5c437528abfcb758f1b127d86dce.zip
spike-414cf9ae675e5c437528abfcb758f1b127d86dce.tar.gz
spike-414cf9ae675e5c437528abfcb758f1b127d86dce.tar.bz2
Write execution logs to a named log file (#409)
This patch adds a --log argument to spike. If not given, the behaviour is unchanged: messages logging execution of instructions and (if commit logging is enabled) commits go to stderr. If --log=P is given, Spike now writes these messages to a log file at the path P. This is nice, because they are no longer tangled up with other errors and warnings. The code is mostly plumbing: passing a FILE* object through to the functions that were using stderr. I've written a simple "log_file_t" class, which opens a log file if necessary and yields it or stderr.
Diffstat (limited to 'fesvr')
0 files changed, 0 insertions, 0 deletions