diff options
| author | Mark Wenning <wenning@us.ibm.com> | 2012-06-19 21:24:30 -0500 |
|---|---|---|
| committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-06-25 15:01:41 -0500 |
| commit | 206300b53cd5653c03747c5f661615b353da8c22 (patch) | |
| tree | e67d8d5419d933c04a1c1910441068dcc89ad5a4 /src/build/debug/simics-debug-framework.py | |
| parent | d3751578876a7a37d29d6492c2c02a2039547f2d (diff) | |
| download | blackbird-hostboot-206300b53cd5653c03747c5f661615b353da8c22.tar.gz blackbird-hostboot-206300b53cd5653c03747c5f661615b353da8c22.zip | |
hb-Istep workaround for simics
RTC: 43953
Change-Id: I8e13c6186a39786382e70be4276a67b9ec8f92e9
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1238
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/build/debug/simics-debug-framework.py')
| -rwxr-xr-x | src/build/debug/simics-debug-framework.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/build/debug/simics-debug-framework.py b/src/build/debug/simics-debug-framework.py index 27f074fe2..e1c81bcdc 100755 --- a/src/build/debug/simics-debug-framework.py +++ b/src/build/debug/simics-debug-framework.py @@ -175,8 +175,14 @@ class DebugFrameworkProcess: cycles = int(match.group(1)) + ## @todo mww SIM_continue is busted, try this... if (not SIM_simics_is_running()): - SIM_continue(cycles) + ## SIM_continue(cycles) + syscmd = "run-cycles %d"%(cycles) + ## print ">> %s"%(syscmd) + ( rc, out ) = quiet_run_command( syscmd, output_modes.regular ) + if ( rc ): + print "simics ERROR running %s: %d "%( syscmd, rc ) def ready_for_instr(self,data): self.sendMsg("data-response", "0" if SIM_simics_is_running() else "1") @@ -222,6 +228,8 @@ class DebugFrameworkProcess: runStr = "phys_mem.write 0x%x 0x%x 0x%x"%(addr, data, size) ( result, out ) = quiet_run_command( runStr, output_modes.regular ) ## DEBUG print ">> %s : "%(runStr) + " 0x%16.16x"%(result) + " : " + out + if ( result ): + print "simics ERROR running %s: %d "%( syscmd, result ) # @fn run_hb_debug_framework # @brief Wrapper function to execute a tool module. |

