rtl refactoring

This commit is contained in:
Blaise Tine
2020-05-05 10:46:48 -04:00
parent f142afac80
commit b7e892ee16
39 changed files with 393 additions and 425 deletions

View File

@@ -141,7 +141,7 @@ void Simulator::wait(uint32_t cycles) {
}
bool Simulator::is_busy() {
return (0 == vortex_->ebreak);
return vortex_->busy;
}
void Simulator::flush_caches(uint32_t mem_addr, uint32_t size) {
@@ -174,7 +174,8 @@ bool Simulator::run() {
this->reset();
// execute program
while (!vortex_->ebreak) {
while (vortex_->busy
&& !vortex_->ebreak) {
this->step();
}