From 918b3ef50790f0ae7c8c079754f7332933572d5b Mon Sep 17 00:00:00 2001 From: Wilson Fung Date: Thu, 11 Apr 2013 05:17:09 -0800 Subject: Replaced the legacy L2 cache access stats with more meaningful breakdown that categorize access by their access type (global memory read/write, local memory read/write, instruction read, ... etc.). [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15784] --- src/gpgpu-sim/gpu-cache.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/gpgpu-sim/gpu-cache.h') diff --git a/src/gpgpu-sim/gpu-cache.h b/src/gpgpu-sim/gpu-cache.h index 65183e4..4910ca2 100644 --- a/src/gpgpu-sim/gpu-cache.h +++ b/src/gpgpu-sim/gpu-cache.h @@ -45,10 +45,11 @@ enum cache_block_state { }; enum cache_request_status { - HIT, + HIT = 0, HIT_RESERVED, MISS, - RESERVATION_FAIL + RESERVATION_FAIL, + NUM_CACHE_REQUEST_STATUS }; enum cache_event { @@ -57,6 +58,8 @@ enum cache_event { WRITE_REQUEST_SENT }; +const char * cache_request_status_str(enum cache_request_status status); + struct cache_block_t { cache_block_t() { -- cgit v1.3