Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
kathlenemagnus committed Nov 21, 2024
1 parent 7b79ab3 commit c4c18ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/AtlasState.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ namespace atlas
const size_t size = sizeof(MemoryType);
std::vector<uint8_t> buffer(sizeof(MemoryType) / sizeof(uint8_t), 0);
const bool success = memory->tryRead(paddr, size, buffer.data());
sparta_assert(success, "Failed to read from memory at address 0x" << std::hex << vaddr);
sparta_assert(success, "Failed to read from memory at address 0x" << std::hex << paddr);

const MemoryType value = convertFromByteVector<MemoryType>(buffer);
ILOG("Memory read to 0x" << std::hex << paddr << ": 0x" << (uint64_t)value);
Expand All @@ -100,7 +100,7 @@ namespace atlas
const size_t size = sizeof(MemoryType);
const std::vector<uint8_t> buffer = convertToByteVector<MemoryType>(value);
const bool success = memory->tryWrite(paddr, size, buffer.data());
sparta_assert(success, "Failed to write to memory at address 0x" << std::hex << vaddr);
sparta_assert(success, "Failed to write to memory at address 0x" << std::hex << paddr);

ILOG("Memory write to 0x" << std::hex << paddr << ": 0x" << (uint64_t)value);
}
Expand Down

0 comments on commit c4c18ef

Please sign in to comment.