Implemented RiscV::getState()

This commit is contained in:
Nav
2023-11-22 00:53:51 +00:00
parent f3e9796772
commit ad1261ebc8

View File

@@ -166,7 +166,7 @@ namespace Targets::RiscV
} }
TargetState RiscV::getState() { TargetState RiscV::getState() {
return TargetState::STOPPED; return this->readStatusRegister().anyRunning ? TargetState::RUNNING : TargetState::STOPPED;
} }
TargetMemoryAddress RiscV::getProgramCounter() { TargetMemoryAddress RiscV::getProgramCounter() {