From ac097544d1203adc71cec625c4b1e5dca50f5115 Mon Sep 17 00:00:00 2001 From: "Andrew M. B. Boktor" Date: Sat, 17 Mar 2012 18:47:05 -0800 Subject: Fix for bug 142 [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11724] --- src/gpgpu-sim/shader.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index 82be8ed..7d4f7eb 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -722,7 +722,7 @@ void shader_core_ctx::warp_inst_complete(const warp_inst_t &inst) void shader_core_ctx::writeback() { warp_inst_t *&pipe_reg = m_pipeline_reg[EX_WB]; - if( !pipe_reg->empty() ) { + if( !pipe_reg->empty() && m_operand_collector.writeback(*pipe_reg)) { unsigned warp_id = pipe_reg->warp_id(); m_scoreboard->releaseRegisters( pipe_reg ); m_warp[warp_id].dec_inst_in_pipeline(); -- cgit v1.3