summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/l2cache.cc
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2011-01-02 12:23:52 -0800
committerTor Aamodt <[email protected]>2011-01-02 12:23:52 -0800
commit36397be09f07bf5cdb47913a7e5e1790d32c00ed (patch)
tree94c02395ff8fbb62ee780e88db33d472336e1f2d /src/gpgpu-sim/l2cache.cc
parent30022ecfff2ac894c0477f0ab3aac00708ac0550 (diff)
integrate bug fix (passes fast regression)
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 8310]
Diffstat (limited to 'src/gpgpu-sim/l2cache.cc')
-rw-r--r--src/gpgpu-sim/l2cache.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gpgpu-sim/l2cache.cc b/src/gpgpu-sim/l2cache.cc
index bb13cbc..5c19c32 100644
--- a/src/gpgpu-sim/l2cache.cc
+++ b/src/gpgpu-sim/l2cache.cc
@@ -105,7 +105,7 @@ memory_partition_unit::memory_partition_unit( unsigned partition_id,
m_id = partition_id;
m_config=config;
m_stats=stats;
- m_dram = new dram_t(m_id,m_config,m_stats);
+ m_dram = new dram_t(m_id,m_config,m_stats,this);
char L2c_name[32];
snprintf(L2c_name, 32, "L2_bank_%03d", m_id);
@@ -317,6 +317,11 @@ mem_fetch* memory_partition_unit::top()
return mf;
}
+void memory_partition_unit::set_done( mem_fetch *mf )
+{
+ m_request_tracker.erase(mf);
+}
+
void memory_partition_unit::dram_cycle()
{
// pop completed memory request from dram and push it to dram-to-L2 queue