From b621489268b00e816eb18e72be53f9a049787ffb Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Tue, 10 Aug 2010 18:04:54 -0800 Subject: refactor: mostly finished getting rid of extern decl [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7183] --- src/gpgpu-sim/gpu-cache.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/gpgpu-sim/gpu-cache.cc') 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 #include @@ -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, -- cgit v1.3