summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/gpu-cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.cc')
-rw-r--r--src/gpgpu-sim/gpu-cache.cc10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gpgpu-sim/gpu-cache.cc b/src/gpgpu-sim/gpu-cache.cc
index 679d1d2..013ca54 100644
--- a/src/gpgpu-sim/gpu-cache.cc
+++ b/src/gpgpu-sim/gpu-cache.cc
@@ -67,6 +67,8 @@
#include "gpu-cache.h"
#include "gpu-misc.h"
#include "addrdec.h"
+#include "stat-tool.h"
+#include "gpu-sim.h"
#include <assert.h>
#include <string.h>
@@ -141,19 +143,12 @@ void shd_cache_destroy( shd_cache_t* cp ) {
free(cp);
}
-extern void shader_cache_miss_log( int logger_id, int type );
// hook up with shader core logger
void shd_cache_bind_logger(shd_cache_t* cp, int core_id, int type_id) {
cp->core_id = core_id;
cp->type_id = type_id;
}
-extern unsigned long long int addrdec_packbits(unsigned long long int mask,
- unsigned long long int val,
- unsigned char high, unsigned char low);
-extern void shader_cache_access_log( int logger_id, int type, int miss);
-extern void shader_cache_access_unlog( int logger_id, int type, int miss);
-
shd_cache_line_t* shd_cache_access_internal( shd_cache_t *cp,
unsigned long long int addr,
unsigned int nbytes,
@@ -211,7 +206,6 @@ shd_cache_line_t* shd_cache_access( shd_cache_t *cp,
return shd_cache_access_internal(cp,addr,nbytes,write,sim_cycle,1/*this is a real access*/);
}
-extern int gpgpu_cache_wt_through;
shd_cache_t *test = NULL;
enum cache_request_status shd_cache_access_wb( shd_cache_t *cp,
unsigned long long int addr,