summaryrefslogtreecommitdiff
path: root/src/gpgpu-sim/mem_fetch.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpgpu-sim/mem_fetch.cc')
-rw-r--r--src/gpgpu-sim/mem_fetch.cc8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gpgpu-sim/mem_fetch.cc b/src/gpgpu-sim/mem_fetch.cc
index 296a834..e2bc3e3 100644
--- a/src/gpgpu-sim/mem_fetch.cc
+++ b/src/gpgpu-sim/mem_fetch.cc
@@ -115,10 +115,7 @@ void mem_fetch::set_status( enum mshr_status status, enum mem_req_stat stat, uns
{
if ( mshr ) {
mshr->set_status(status);
- if( mshr->has_inst() )
- time_vector_update(mshr->get_insts_uid(),stat,cycle,type);
- else
- time_vector_update(request_uid,stat,cycle,type);
+ time_vector_update(request_uid,stat,cycle,type);
}
}
@@ -130,8 +127,7 @@ bool mem_fetch::isatomic() const
void mem_fetch::do_atomic()
{
- dram_callback_t &cb = mshr->get_atomic_callback();
- cb.function(cb.instruction, cb.thread);
+ mshr->do_atomic();
}
bool mem_fetch::isinst() const