summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAhmed El-Shafiey <[email protected]>2012-01-15 21:05:34 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:19:02 -0700
commit38a8cb26687e3e0e88fabb1b64fc295746fc10d9 (patch)
treec505b8677815172447b7855e502db448ffb05a2f
parent9045660e6c310c2a8b50c3cdb83c2c8cde8406bf (diff)
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]
-rw-r--r--src/gpgpu-sim/shader.cc3
1 files changed, 2 insertions, 1 deletions
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<mem_fetch*>::const_iterator i=m_response_fifo.begin(); i != m_response_fifo.end(); i++ ) {
const mem_fetch *mf = *i;