aboutsummaryrefslogtreecommitdiff
path: root/spike_main
diff options
context:
space:
mode:
authorRupert Swarbrick <rswarbrick@lowrisc.org>2022-04-11 23:18:27 +0100
committerGitHub <noreply@github.com>2022-04-11 15:18:27 -0700
commitae7d2c3062c1a911d97444e5c6df5089a7bb52f6 (patch)
tree7a9bb189b01d119cecdbebe823f8f16a302790ad /spike_main
parent168b4ea6a568741e88156ed8f96b5df2765d9df7 (diff)
downloadriscv-isa-sim-ae7d2c3062c1a911d97444e5c6df5089a7bb52f6.zip
riscv-isa-sim-ae7d2c3062c1a911d97444e5c6df5089a7bb52f6.tar.gz
riscv-isa-sim-ae7d2c3062c1a911d97444e5c6df5089a7bb52f6.tar.bz2
Change processor_t to hold a pointer to an isa_parser_t (#973)
Before, it had another copy, which is a little unnecessary.
Diffstat (limited to 'spike_main')
-rw-r--r--spike_main/spike-log-parser.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/spike_main/spike-log-parser.cc b/spike_main/spike-log-parser.cc
index 0a4442f..fab00f0 100644
--- a/spike_main/spike-log-parser.cc
+++ b/spike_main/spike-log-parser.cc
@@ -28,7 +28,7 @@ int main(int argc, char** argv)
parser.parse(argv);
isa_parser_t isa(isa_string, DEFAULT_PRIV);
- processor_t p(isa, DEFAULT_VARCH, 0, 0, false, nullptr, cerr);
+ processor_t p(&isa, DEFAULT_VARCH, 0, 0, false, nullptr, cerr);
if (extension) {
p.register_extension(extension());
}