Skip to content

Commit

Permalink
[Spike] Register and reset ISA extension in Processor ctor.
Browse files Browse the repository at this point in the history
  • Loading branch information
zchamski committed Jan 31, 2025
1 parent c32eec6 commit 709891d
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions vendor/riscv/riscv-isa-sim/riscv/Proc.cc
Original file line number Diff line number Diff line change
Expand Up @@ -258,16 +258,9 @@ Processor::Processor(
for (auto e : this->isa->get_extensions()) {
if (e.second && e.second->name()) {
e.second->set_Proc(this);
// Xsomething custom ISA extensions have already been registered as 'something'.
// However, they may need a reset in Processor context to access the Yaml parameters.
if (e.second->name() != string("cvxif")) {
std::cerr << "### [SPIKE] Processor::Processor(): registering extension '" << e.second->name() << "' in Processor context..." << std::endl;
register_extension(e.second);
}
else {
std::cerr << "### [SPIKE] Processor::Processor(): explicitly resetting extension '" << e.second->name() << "' in Processor context..." << std::endl;
e.second->reset();
}
std::cerr << "### [SPIKE] Processor::Processor(): registering and resetting extension '" << e.second->name() << "' in Processor context..." << std::endl;
egister_extension(e.second);
e.second->reset();
}
}

Expand Down

0 comments on commit 709891d

Please sign in to comment.