Implemented RiscV getProgramCounter()
This commit is contained in:
@@ -9,5 +9,6 @@ namespace Targets::RiscV::Registers
|
||||
enum class RegisterNumber: std::uint16_t
|
||||
{
|
||||
DEBUG_CONTROL_STATUS_REGISTER = 0x07b0,
|
||||
DEBUG_PROGRAM_COUNTER_REGISTER = 0x07b1,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -223,7 +223,7 @@ namespace Targets::RiscV
|
||||
}
|
||||
|
||||
TargetMemoryAddress RiscV::getProgramCounter() {
|
||||
return 0;
|
||||
return this->readRegister(RegisterNumber::DEBUG_PROGRAM_COUNTER_REGISTER);
|
||||
}
|
||||
|
||||
void RiscV::setProgramCounter(TargetMemoryAddress programCounter) {
|
||||
|
||||
Reference in New Issue
Block a user