Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/gpgpu-sim/gpu-cache.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@

const char *cache_request_status_str(enum cache_request_status status) {
static const char *static_cache_request_status_str[] = {
"HIT", "HIT_RESERVED", "MISS", "RESERVATION_FAIL", "SECTOR_MISS"};
"HIT", "HIT_RESERVED", "MISS", "RESERVATION_FAIL", "SECTOR_MISS", "MSHR_HIT"};

assert(sizeof(static_cache_request_status_str) / sizeof(const char *) ==
NUM_CACHE_REQUEST_STATUS);
Expand Down Expand Up @@ -1123,6 +1123,7 @@ void baseline_cache::send_read_request(new_addr_type addr,
m_tag_array->access(block_addr, time, cache_index, wb, evicted, mf);

m_mshrs.add(mshr_addr, mf);
m_stats.inc_stats(mf->get_access_type(), MSHR_HIT);
do_miss = true;

} else if (!mshr_hit && mshr_avail &&
Expand Down
1 change: 1 addition & 0 deletions src/gpgpu-sim/gpu-cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ enum cache_request_status {
MISS,
RESERVATION_FAIL,
SECTOR_MISS,
MSHR_HIT,
NUM_CACHE_REQUEST_STATUS
};

Expand Down