From e4d7bf562e8e90fa4523efc186322bff416c0506 Mon Sep 17 00:00:00 2001 From: Tim Rogers Date: Sat, 9 Feb 2013 14:58:14 -0800 Subject: Fixing a slew of compiler warnings [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 15218] --- src/cuda-sim/instructions.cc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/cuda-sim/instructions.cc') 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) -- cgit v1.3