Moved abstract command construction outside of loop. Didn't need to be there. Improved efficiency
This commit is contained in:
@@ -305,16 +305,16 @@ namespace Targets::RiscV
|
|||||||
*/
|
*/
|
||||||
this->riscVDebugInterface->writeDebugModuleRegister(RegisterAddress::ABSTRACT_DATA_1, startAddress);
|
this->riscVDebugInterface->writeDebugModuleRegister(RegisterAddress::ABSTRACT_DATA_1, startAddress);
|
||||||
|
|
||||||
for (auto address = startAddress; address <= (startAddress + bytes - 1); address += 4) {
|
auto command = AbstractCommandRegister();
|
||||||
auto command = AbstractCommandRegister();
|
command.commandType = AbstractCommandRegister::CommandType::MEMORY_ACCESS;
|
||||||
command.commandType = AbstractCommandRegister::CommandType::MEMORY_ACCESS;
|
command.control = MemoryAccessControlField(
|
||||||
command.control = MemoryAccessControlField(
|
false,
|
||||||
false,
|
true,
|
||||||
true,
|
MemoryAccessControlField::MemorySize::SIZE_32,
|
||||||
MemoryAccessControlField::MemorySize::SIZE_32,
|
false
|
||||||
false
|
).value();
|
||||||
).value();
|
|
||||||
|
|
||||||
|
for (auto address = startAddress; address <= (startAddress + bytes - 1); address += 4) {
|
||||||
this->executeAbstractCommand(command);
|
this->executeAbstractCommand(command);
|
||||||
|
|
||||||
const auto data = this->riscVDebugInterface->readDebugModuleRegister(RegisterAddress::ABSTRACT_DATA_0);
|
const auto data = this->riscVDebugInterface->readDebugModuleRegister(RegisterAddress::ABSTRACT_DATA_0);
|
||||||
|
|||||||
Reference in New Issue
Block a user