diff options
author | Van Lee <vanlee@us.ibm.com> | 2012-06-18 09:43:08 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-06-25 15:32:35 -0500 |
commit | f44209f72b68110b2853104b1a26c731becd1f71 (patch) | |
tree | e7b27c727387ce1456b01c4400c6a027337824f6 /src/build/debug/simics-debug-framework.py | |
parent | 206300b53cd5653c03747c5f661615b353da8c22 (diff) | |
download | talos-hostboot-f44209f72b68110b2853104b1a26c731becd1f71.tar.gz talos-hostboot-f44209f72b68110b2853104b1a26c731becd1f71.zip |
Fix continuous trace missing traces issue in simics when hostboot shuts down
Change-Id: Ib4e619b0eaf01caf1e1276d2a712dfbb6da996de
RTC: 43475
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1215
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 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/build/debug/simics-debug-framework.py b/src/build/debug/simics-debug-framework.py index e1c81bcdc..065e42167 100755 --- a/src/build/debug/simics-debug-framework.py +++ b/src/build/debug/simics-debug-framework.py @@ -378,6 +378,8 @@ def magic_instruction_callback(user_arg, cpu, arg): if arg == 7006: # MAGIC_SHUTDOWN # KernelMisc::shutdown() print "KernelMisc::shutdown() called." + os.system( "fsp-trace ./ -s "+os.environ['HB_TOOLPATH']+ + "/hbotStringFile >>tracMERG 2>/dev/null" ) # Could break/stop/pause the simics run, but presently # shutdown() is called four times. --Monte Jan 2012 # SIM_break_simulation( "Shutdown. Simulation stopped." ) @@ -394,8 +396,7 @@ def magic_instruction_callback(user_arg, cpu, arg): pTracBinaryBuffer = readLongLong(tracBinaryInfoAddr) # Read the count of bytes used in the tracBinary buffer cbUsed = readLongLong(tracBinaryInfoAddr+8) - triggerActive = readLong(tracBinaryInfoAddr+16) - if triggerActive == 0 and cbUsed == 1: + if cbUsed == 1: pTracBinaryBuffer = readLongLong(tracBinaryInfoAddr+24) cbUsed = readLongLong(tracBinaryInfoAddr+32) writeLong(tracBinaryInfoAddr+40,0) |