diff options
| author | Tor Aamodt <[email protected]> | 2010-07-16 21:34:35 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-07-16 21:34:35 -0800 |
| commit | 6ab0303a15ae4230cdea1495c0ca1a1a74e8df84 (patch) | |
| tree | 87b9e29788bac005b054c127bfed3b1d6dd26347 /src/cuda-sim/ptx_sim.cc | |
| parent | 6941e2dc7c6fb5e9d365e4e96ae4bc8cece2bdac (diff) | |
- integrate Wilson's bug fixes from release
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 6852]
Diffstat (limited to 'src/cuda-sim/ptx_sim.cc')
| -rw-r--r-- | src/cuda-sim/ptx_sim.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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("<unknown type> 0x%llx\n", (unsigned long long ) value.u64 ); + return; + } type_info_key ti = t->get_key(); switch ( ti.scalar_type() ) { |
