From 6ab0303a15ae4230cdea1495c0ca1a1a74e8df84 Mon Sep 17 00:00:00 2001 From: Tor Aamodt Date: Fri, 16 Jul 2010 21:34:35 -0800 Subject: - integrate Wilson's bug fixes from release [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6852] --- src/cuda-sim/ptx_sim.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/cuda-sim/ptx_sim.cc') diff --git a/src/cuda-sim/ptx_sim.cc b/src/cuda-sim/ptx_sim.cc index a1a77fd..6a62783 100644 --- a/src/cuda-sim/ptx_sim.cc +++ b/src/cuda-sim/ptx_sim.cc @@ -316,6 +316,10 @@ static void print_reg( std::string name, ptx_reg_t value ) return; } const type_info *t = sym->type(); + if( t == NULL ) { + printf(" 0x%llx\n", (unsigned long long ) value.u64 ); + return; + } type_info_key ti = t->get_key(); switch ( ti.scalar_type() ) { -- cgit v1.3