fix dramsim2 memory model to wrap around
- there was a problem when the I$ speculatively fetched an instruction from an illegal address
This commit is contained in:
parent
217898c7d0
commit
f37b9d9a7d
@ -79,8 +79,8 @@ void mm_dramsim2_t::tick
|
||||
|
||||
if (req_cmd_fire)
|
||||
{
|
||||
auto byte_addr = req_cmd_addr*REFILL_COUNT*MM_WORD_SIZE;
|
||||
assert(byte_addr < size);
|
||||
// since the I$ can speculatively ask for address that are out of bounds
|
||||
auto byte_addr = (req_cmd_addr*REFILL_COUNT*MM_WORD_SIZE) % size;
|
||||
|
||||
if (req_cmd_store)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user