Skip to content

Commit

Permalink
Remove debug memory access check
Browse files Browse the repository at this point in the history
This check does not make sense for our cosimulation environment (the
spike debug module is not in use) and leads to false failures when
randomly generated programs want to access the spike debug memory
address range.
  • Loading branch information
GregAC committed Jul 2, 2024
1 parent c0926fc commit 1f89c52
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions riscv/mmu.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ reg_t reg_from_bytes(size_t len, const uint8_t* bytes)

bool mmu_t::mmio_ok(reg_t addr, access_type type)
{
// Disallow access to debug region when not in debug mode
if (addr >= DEBUG_START && addr <= DEBUG_END && proc && !proc->state.debug_mode)
return false;

return true;
}

Expand Down

0 comments on commit 1f89c52

Please sign in to comment.