Skip to content

Commit

Permalink
Merge pull request #5 from agra-uni-bremen/no-fail-on-unmapped-debugg…
Browse files Browse the repository at this point in the history
…er-access

Removed assertion with warning on debugger access of unmapped memory
  • Loading branch information
U2654 authored Feb 25, 2021
2 parents b52d857 + 535ea2f commit dd8366d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion vp/src/core/common/debug_memory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ std::string DebugMemoryInterface::read_memory(uint64_t start, unsigned nbytes) {
std::vector<uint8_t> buf(nbytes); // NOTE: every element is zero-initialized by default

unsigned nbytes_read = _do_dbg_transaction(tlm::TLM_READ_COMMAND, start, buf.data(), buf.size());
assert(nbytes_read == nbytes && "not all bytes read");
if(nbytes_read < nbytes) {
std::cerr << "DebugMemoryInterface::read_memory: not all bytes read."
"Mostly this is caused by reading unmapped memory location."
<< std::endl;
}

std::stringstream stream;
stream << std::setfill('0') << std::hex;
Expand Down

0 comments on commit dd8366d

Please sign in to comment.