diff options
| author | Tor Aamodt <[email protected]> | 2010-10-01 08:55:28 -0800 |
|---|---|---|
| committer | Tor Aamodt <[email protected]> | 2010-10-01 08:55:28 -0800 |
| commit | 11b308e7363e937966b035b4891db32b4eece3bf (patch) | |
| tree | 50ca4c9ad6f163ac4acb2bf505e64dfebed66947 /.gdbinit | |
| parent | bb820c116764d7a1b8e071137d32b74e7f34dd2f (diff) | |
integrating recent changes from fermi-test into fermi
(i'll use "fermi" for more disruptive changes to the pipeline model such
as updating the MSHRs and getting rid of the warp tracker, ripping out DWF, etc...)
[git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 7805]
Diffstat (limited to '.gdbinit')
| -rw-r--r-- | .gdbinit | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -8,7 +8,7 @@ set print array-indexes set unwindonsignal on define dp - call dump_pipeline_impl((0x40|0x4|0x1),$arg0,0) + call g_the_gpu.dump_pipeline((0x40|0x4|0x1),$arg0,0) end document dp @@ -18,12 +18,12 @@ Display pipeline state. This function displays the state of the pipeline on a single shader core (setting different values for the first argument of the call to -dump_pipeline_impl will cause different information to be displayed-- +dump_pipeline will cause different information to be displayed-- see the source code for more details) end define dpc - call dump_pipeline_impl((0x40|0x4|0x1),$arg0,0) + call g_the_gpu.dump_pipeline((0x40|0x4|0x1),$arg0,0) continue end @@ -38,6 +38,10 @@ repeatly hitting enter will advance to show the pipeline contents on the next cycle. end +define dm + call g_the_gpu.dump_pipeline(0x100,$arg0,0) +end + define ptxdis set $addr=$arg0 printf "disassemble instructions from 0x%x to 0x%x\n", $arg0, $arg1 @@ -56,7 +60,7 @@ Disassemble PTX instructions between <start> and <end> (PCs). end define ptxdis_func - set $ptx_tinfo = (ptx_thread_info*)sc[$arg0]->thread[$arg1].ptx_thd_info + set $ptx_tinfo = g_the_gpu.m_sc[$arg0]->thread[$arg1].ptx_thd_info set $finfo = $ptx_tinfo->m_func_info set $minpc = $finfo->m_start_PC set $maxpc = $minpc + $finfo->m_instr_mem_size @@ -74,7 +78,7 @@ define ptx_tids2pcs set $i = 0 while ( $i < $arg1 ) set $tid = $arg0[$i] - set $addr = ((ptx_thread_info*)sc[$arg2]->thread[$tid].ptx_thd_info)->m_PC + set $addr = (g_the_gpu.m_sc[$arg2]->thread[$tid].ptx_thd_info)->m_PC printf "%2u : tid = %3u => pc = %d\n", $i, $tid, $addr set $i = $i + 1 end |
