summaryrefslogtreecommitdiffstats
path: root/src/build/simics
diff options
context:
space:
mode:
authorPatrick Williams <iawillia@us.ibm.com>2011-09-30 15:43:43 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2011-10-06 15:08:30 -0500
commit6a8da9bd753778ef2f54ff743583f52c3ff4e598 (patch)
tree34e73e4fdcb0a3d9def0d0037bb1927ff6423984 /src/build/simics
parentfdbe0a754e64fb8c4c7cb9aa98184ca87a867e22 (diff)
downloadtalos-hostboot-6a8da9bd753778ef2f54ff743583f52c3ff4e598.tar.gz
talos-hostboot-6a8da9bd753778ef2f54ff743583f52c3ff4e598.zip
Simics command for single-thread mode.
Change-Id: I74b49c7bd9647d31603a08ffbc14f21ef579cfc1 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/395 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com> Reviewed-by: CAMVAN T. NGUYEN <ctnguyen@us.ibm.com> Reviewed-by: Andrew J. Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'src/build/simics')
-rwxr-xr-xsrc/build/simics/hb-simdebug.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/build/simics/hb-simdebug.py b/src/build/simics/hb-simdebug.py
index a611cbf13..fbc223705 100755
--- a/src/build/simics/hb-simdebug.py
+++ b/src/build/simics/hb-simdebug.py
@@ -687,4 +687,16 @@ Examples: \n
""")
+#------------------------------------------------
+#------------------------------------------------
+def hb_singlethread():
+ run_command("foreach $cpu in (system_cmp0.get-processor-list) {$cpu.disable}")
+ run_command("cpu0_0_0_0.enable");
+ return
+new_command("hb-singlethread",
+ hb_singlethread,
+ [],
+ alias = "hb-st",
+ type = ["hostboot-commands"],
+ short = "Disable all threads except cpu0_0_0_0.")
OpenPOWER on IntegriCloud