summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.h
diff options
context:
space:
mode:
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()
{