summaryrefslogtreecommitdiff
path: root/src/cuda-sim/ptx_sim.cc
diff options
context:
space:
mode:
authorTor Aamodt <[email protected]>2010-08-08 04:16:35 -0800
committerTor Aamodt <[email protected]>2010-08-08 04:16:35 -0800
commit06435e77c580bf7737333929ed26d3863949bd15 (patch)
tree2aa5881d8b3cffc6e3587007da0e9556c78665b3 /src/cuda-sim/ptx_sim.cc
parent4d441a9746616b2e45397097e6a7600a67aa973c (diff)
add listing function for ptx debugging
print out compilation errors encountered during OpenCL to PTX conversion (still a bit cryptic) [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7162]
Diffstat (limited to 'src/cuda-sim/ptx_sim.cc')
-rw-r--r--src/cuda-sim/ptx_sim.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/cuda-sim/ptx_sim.cc b/src/cuda-sim/ptx_sim.cc
index d7fa510..9a2acf6 100644
--- a/src/cuda-sim/ptx_sim.cc
+++ b/src/cuda-sim/ptx_sim.cc
@@ -434,6 +434,16 @@ std::string ptx_thread_info::get_location() const
return std::string(buf);
}
+const ptx_instruction *ptx_thread_info::get_inst() const
+{
+ return m_func_info->get_instruction(m_PC);
+}
+
+const ptx_instruction *ptx_thread_info::get_inst( addr_t pc ) const
+{
+ return m_func_info->get_instruction(pc);
+}
+
void ptx_thread_info::dump_regs()
{
printf("Register File Contents:\n");