summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/dram.cc
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-10-02 19:53:47 -0800
committerTor Aamodt <[email protected]>2010-10-02 19:53:47 -0800
commit5c220c406491b72054a00d1dceab222ab796f06a (patch)
tree507f791973f4b4b0d0c016a2b5385f0aba66224c /src/gpgpu-sim/dram.cc
parentd3b9d526ecbf5e0bdaa91d21526cb56a2e98b534 (diff)
refactor: mem_fetch now a class
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7807]
Diffstat (limited to 'src/gpgpu-sim/dram.cc')
-rw-r--r--src/gpgpu-sim/dram.cc18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/gpgpu-sim/dram.cc b/src/gpgpu-sim/dram.cc
index fe1b470..e798724 100644
--- a/src/gpgpu-sim/dram.cc
+++ b/src/gpgpu-sim/dram.cc
@@ -184,23 +184,25 @@ unsigned int dram_t::queue_limit() const
dram_req_t::dram_req_t( class mem_fetch *mf )
{
- bk = mf->tlx.bk;
- row = mf->tlx.row;
- col = mf->tlx.col;
- nbytes = mf->nbytes_L1;
txbytes = 0;
dqbytes = 0;
data = mf;
+
+ const addrdec_t &tlx = mf->get_tlx_addr();
+
+ bk = tlx.bk;
+ row = tlx.row;
+ col = tlx.col;
+ nbytes = mf->get_data_size();
+
timestamp = gpu_tot_sim_cycle + gpu_sim_cycle;
- cache_hits_waiting = mf->cache_hits_waiting;
- addr = mf->addr;
+ addr = mf->get_addr();
insertion_time = (unsigned) gpu_sim_cycle;
- rw = data->m_write?WRITE:READ;
+ rw = data->get_is_write()?WRITE:READ;
}
void dram_t::push( class mem_fetch *data )
{
- assert(data->tlx.bk<nbk);
dram_req_t *mrq = new dram_req_t(data);
mrqq->push(mrq,gpu_sim_cycle);