summaryrefslogtreecommitdiff
path: root/src/cuda-sim/instructions.cc
diff options
context:
space:
mode:
authorTim Rogers <[email protected]>2013-02-09 14:58:14 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:50:04 -0700
commite4d7bf562e8e90fa4523efc186322bff416c0506 (patch)
treee770f274df3bc2d2002d8ec141c6e2ca865f29c1 /src/cuda-sim/instructions.cc
parentdb6ea8d4b4a2262e4d830c034a7dd220b7669ffe (diff)
Fixing a slew of compiler warnings
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15218]
Diffstat (limited to 'src/cuda-sim/instructions.cc')
-rw-r--r--src/cuda-sim/instructions.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/cuda-sim/instructions.cc b/src/cuda-sim/instructions.cc
index 99d7399..99e81e5 100644
--- a/src/cuda-sim/instructions.cc
+++ b/src/cuda-sim/instructions.cc
@@ -1168,7 +1168,12 @@ void atom_callback( const inst_t* inst, ptx_thread_info* thread )
// Write operation result into memory
// (i.e. copy src1_data to dst)
- mem->write(effective_address,size/8,&op_result.s64,thread,pI);
+ if ( data_ready ) {
+ mem->write(effective_address,size/8,&op_result.s64,thread,pI);
+ } else {
+ printf("Execution error: data_ready not set\n");
+ assert(0);
+ }
}
// atom_impl will now result in a callback being called in mem_ctrl_pop (gpu-sim.c)