From 38a8cb26687e3e0e88fabb1b64fc295746fc10d9 Mon Sep 17 00:00:00 2001 From: Ahmed El-Shafiey Date: Sun, 15 Jan 2012 21:05:34 -0800 Subject: A small bug fix, the dupm pipeline was crashing if the L1 data cache is disabled, it was trying to print its content, even though. [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 11340] --- src/gpgpu-sim/shader.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gpgpu-sim/shader.cc b/src/gpgpu-sim/shader.cc index c06d1e7..42f43fe 100644 --- a/src/gpgpu-sim/shader.cc +++ b/src/gpgpu-sim/shader.cc @@ -1328,7 +1328,8 @@ void ldst_unit::print(FILE *fout) const } m_L1C->display_state(fout); m_L1T->display_state(fout); - m_L1D->display_state(fout); + if( !m_config->m_L1D_config.disabled() ) + m_L1D->display_state(fout); fprintf(fout,"LD/ST response FIFO (occupancy = %zu):\n", m_response_fifo.size() ); for( std::list::const_iterator i=m_response_fifo.begin(); i != m_response_fifo.end(); i++ ) { const mem_fetch *mf = *i; -- cgit v1.3