ebreak workaround for RISC-V tests
This commit is contained in:
@@ -300,7 +300,7 @@ void Simulator::run() {
|
||||
|
||||
// execute program
|
||||
while (vortex_->busy
|
||||
&& !vortex_->ebreak) {
|
||||
&& !get_ebreak()) {
|
||||
this->step();
|
||||
}
|
||||
|
||||
@@ -308,6 +308,10 @@ void Simulator::run() {
|
||||
this->wait(5);
|
||||
}
|
||||
|
||||
bool Simulator::get_ebreak() const {
|
||||
return (int)vortex_->Vortex->genblk2__BRA__0__KET____DOT__cluster->genblk2__BRA__0__KET____DOT__core->pipeline->execute->ebreak;
|
||||
}
|
||||
|
||||
int Simulator::get_last_wb_value(int reg) const {
|
||||
return (int)vortex_->Vortex->genblk2__BRA__0__KET____DOT__cluster->genblk2__BRA__0__KET____DOT__core->pipeline->commit->writeback->last_wb_value[reg];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user