summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/shader.cc
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-08-24 09:37:18 -0800
committerTor Aamodt <[email protected]>2010-08-24 09:37:18 -0800
commit5cb919d7fbe3e5b388b9c83b22762dad96da56b1 (patch)
treeff8667fff1b6bb5fb5b6ebe53ac2ddd13c2156c2 /src/gpgpu-sim/shader.cc
parent4624b9f95fcdb0e3fa31d6aa1b5a2c1bd4d39536 (diff)
some minor cleaning up
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7259]
Diffstat (limited to 'src/gpgpu-sim/shader.cc')
-rw-r--r--src/gpgpu-sim/shader.cc29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc
index 28861bf..9373929 100644
--- a/src/gpgpu-sim/shader.cc
+++ b/src/gpgpu-sim/shader.cc
@@ -2898,35 +2898,6 @@ void register_cta_thread_exit(shader_core_ctx_t *shader, int tid )
}
}
-#if 0
-//this function is unecessary, cache is properly dirtied by fill with cache line function in gpu-sim.cc
-void dirty_cache_lines(shader_core_ctx_t *shader, mshr_entry_t* mshr){
- shd_cache_line_t *hit_cacheline;
- if (mshr->istexture) {
- hit_cacheline = shd_cache_access(shader->L1texcache,
- mshr->addr, WORD_SIZE,
- mshr->iswrite, //should always be 0
- shader->gpu_cycle);
- shd_cache_undo_stats( shader->L1texcache, !hit_cacheline );
- } else if (mshr->isconst) {
- hit_cacheline = shd_cache_access(shader->L1constcache,
- mshr->addr, WORD_SIZE,
- mshr->iswrite, //should always be 0
- shader->gpu_cycle);
- shd_cache_undo_stats( shader->L1constcache, !hit_cacheline );
- } else if (!gpgpu_no_dl1) {
- hit_cacheline = shd_cache_access(shader->L1cache,
- mshr->addr, WORD_SIZE,
- mshr->iswrite,
- shader->gpu_cycle);
- shd_cache_undo_stats( shader->L1constcache, !hit_cacheline );
- if (!hit_cacheline) {
- writeback_l1_miss++;
- }
- }
-}
-#endif
-
typedef struct {
unsigned pc;
unsigned long latency;