summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.h
diff options
context:
space:
mode:
authorWilson Fung <[email protected]>2013-04-11 05:17:09 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:46 -0700
commit918b3ef50790f0ae7c8c079754f7332933572d5b (patch)
tree161654598f0190244978e330173b3828a42a3f2d /src/gpgpu-sim/gpu-cache.h
parent3164bfc1910cf17e7dd4033cd07ac264f656336f (diff)
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]
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.h')
-rw-r--r--src/gpgpu-sim/gpu-cache.h7
1 files changed, 5 insertions, 2 deletions
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()
{