diff options
| author | Tor Aamodt <[email protected]> | 2010-08-10 18:04:54 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-08-10 18:04:54 -0800 |
| commit | b621489268b00e816eb18e72be53f9a049787ffb (patch) | |
| tree | 7acb45634570179f27caaed9ae8243868c72c549 /src/gpgpu-sim/gpu-cache.cc | |
| parent | 6eb2c84753d4538ef6ee6ee27802bff9adbbefab (diff) | |
refactor: mostly finished getting rid of extern decl
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7183]
Diffstat (limited to 'src/gpgpu-sim/gpu-cache.cc')
| -rw-r--r-- | src/gpgpu-sim/gpu-cache.cc | 10 |
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, |
