diff options
| author | Tor Aamodt <[email protected]> | 2010-10-02 14:54:02 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-10-02 14:54:02 -0800 |
| commit | d3b9d526ecbf5e0bdaa91d21526cb56a2e98b534 (patch) | |
| tree | d419ff51749e24fb2f30314d42496f25a692561a /src/gpgpu-sim/gpu-misc.h | |
| parent | 11b308e7363e937966b035b4891db32b4eece3bf (diff) | |
refactoring: make shd_cache_t into a class (cache_t), plus some other cleaning up
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7806]
Diffstat (limited to 'src/gpgpu-sim/gpu-misc.h')
| -rw-r--r-- | src/gpgpu-sim/gpu-misc.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/gpgpu-sim/gpu-misc.h b/src/gpgpu-sim/gpu-misc.h index ffe316b..57f991a 100644 --- a/src/gpgpu-sim/gpu-misc.h +++ b/src/gpgpu-sim/gpu-misc.h @@ -67,30 +67,12 @@ #ifndef GPU_MISC_H #define GPU_MISC_H -#define CONSTC 100 -#define DCACHE 200 -#define TEXTC 300 -#define SHD_CACHE_TAG(x,shdr) ((x) & (~((unsigned long long int)shdr->m_L1D->line_sz - 1))) -#define SHD_TEXCACHE_TAG(x,shdr) ((x) & (~((unsigned long long int)shdr->m_L1T->line_sz - 1))) -#define SHD_CONSTCACHE_TAG(x,shdr) ((x) & (~((unsigned long long int)shdr->m_L1C->line_sz - 1))) -#define CACHE_TAG_OF(x,cache) ((x) & (~((unsigned long long int)cache->line_sz - 1))) -#define CACHE_TAG_OF_64(x) ((x) & (~((unsigned long long int)64 - 1))) - -#define ispowerof2(x) ((((x) - 1) & (x)) == 0) -#define powerof2(x) (1 << (x)) - //enables a verbose printout of all L1 cache misses and all MSHR status changes //good for a single shader configuration #define DEBUGL1MISS 0 unsigned int LOGB2( unsigned int v ); -unsigned int MAX2NUM( unsigned int a, unsigned int b ); - -unsigned int MIN2NUM( unsigned int a, unsigned int b ); - - -#define gs_max2(a,b) (((a)>(b))?(a):(b)) #define gs_min2(a,b) (((a)<(b))?(a):(b)) #define min3(x,y,z) (((x)<(y) && (x)<(z))?(x):(gs_min2((y),(z)))) |
