Skip to content

Commit

Permalink
Added check if reservation fail happens to prevent SEGF during cache …
Browse files Browse the repository at this point in the history
…probe
  • Loading branch information
christindbose committed May 10, 2023
1 parent 13c6711 commit cb6060a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gpgpu-sim/gpu-cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,11 @@ void tag_array::fill(new_addr_type addr, unsigned time,
// assert( m_config.m_alloc_policy == ON_FILL );
unsigned idx;
enum cache_request_status status = probe(addr, idx, mask, is_write);

if (status == RESERVATION_FAIL) {
return;
}

bool before = m_lines[idx]->is_modified_line();
// assert(status==MISS||status==SECTOR_MISS); // MSHR should have prevented
// redundant memory request
Expand Down

0 comments on commit cb6060a

Please sign in to comment.