Added TargetMemoryAddress, TargetMemorySize, TargetProgramCounter and TargetStackPointer aliases
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
#include "InsightWorkerTask.hpp"
|
||||
|
||||
#include "src/Targets/TargetMemory.hpp"
|
||||
|
||||
namespace Bloom
|
||||
{
|
||||
class ReadProgramCounter: public InsightWorkerTask
|
||||
@@ -12,7 +14,7 @@ namespace Bloom
|
||||
ReadProgramCounter() = default;
|
||||
|
||||
signals:
|
||||
void programCounterRead(std::uint32_t programCounter);
|
||||
void programCounterRead(Targets::TargetProgramCounter programCounter);
|
||||
|
||||
protected:
|
||||
void run(TargetController::TargetControllerConsole& targetControllerConsole) override;
|
||||
|
||||
@@ -2,6 +2,8 @@
|
||||
|
||||
#include "InsightWorkerTask.hpp"
|
||||
|
||||
#include "src/Targets/TargetMemory.hpp"
|
||||
|
||||
namespace Bloom
|
||||
{
|
||||
class ReadStackPointer: public InsightWorkerTask
|
||||
@@ -12,7 +14,7 @@ namespace Bloom
|
||||
ReadStackPointer() = default;
|
||||
|
||||
signals:
|
||||
void stackPointerRead(std::uint32_t stackPointer);
|
||||
void stackPointerRead(Targets::TargetStackPointer stackPointer);
|
||||
|
||||
protected:
|
||||
void run(TargetController::TargetControllerConsole& targetControllerConsole) override;
|
||||
|
||||
@@ -25,10 +25,10 @@ namespace Bloom
|
||||
for (auto i = 0; i < readsRequired; i++) {
|
||||
auto dataSegment = targetControllerConsole.readMemory(
|
||||
this->memoryType,
|
||||
this->startAddress + static_cast<std::uint32_t>(readSize * i),
|
||||
this->startAddress + static_cast<Targets::TargetMemoryAddress>(readSize * i),
|
||||
(this->size - data.size()) >= readSize
|
||||
? readSize
|
||||
: static_cast<std::uint32_t>(this->size - data.size()),
|
||||
: static_cast<Targets::TargetMemorySize>(this->size - data.size()),
|
||||
this->excludedAddressRanges
|
||||
);
|
||||
|
||||
|
||||
@@ -15,8 +15,8 @@ namespace Bloom
|
||||
public:
|
||||
ReadTargetMemory(
|
||||
Targets::TargetMemoryType memoryType,
|
||||
std::uint32_t startAddress,
|
||||
std::uint32_t size,
|
||||
Targets::TargetMemoryAddress startAddress,
|
||||
Targets::TargetMemorySize size,
|
||||
const std::set<Targets::TargetMemoryAddressRange>& excludedAddressRanges = {}
|
||||
)
|
||||
: memoryType(memoryType)
|
||||
@@ -32,8 +32,8 @@ namespace Bloom
|
||||
|
||||
private:
|
||||
Targets::TargetMemoryType memoryType;
|
||||
std::uint32_t startAddress;
|
||||
std::uint32_t size;
|
||||
Targets::TargetMemoryAddress startAddress;
|
||||
Targets::TargetMemorySize size;
|
||||
std::set<Targets::TargetMemoryAddressRange> excludedAddressRanges;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user