summaryrefslogtreecommitdiffstats
path: root/src/build/debug
diff options
context:
space:
mode:
authorDan Crowell <dcrowell@us.ibm.com>2018-04-16 13:38:20 -0500
committerWilliam G. Hoffa <wghoffa@us.ibm.com>2018-05-30 17:08:28 -0400
commit3ecd7cf99fb44f88a24daca97874e512181ec8f1 (patch)
tree3ab24d83889006bed3bbef25dd32c833094d50da /src/build/debug
parent7983214c3e76cca384d104cd07e9294a5ad81dca (diff)
downloadtalos-hostboot-3ecd7cf99fb44f88a24daca97874e512181ec8f1.tar.gz
talos-hostboot-3ecd7cf99fb44f88a24daca97874e512181ec8f1.zip
Add some MAGIC instructions to aid Simics optimization
8001 - Tell Simics we are waiting on the FSP 8006 - Tell Simics we shutdown 8020 - Tell Simics which istep we're running CQ: SW423959 Change-Id: Icea13d2ed7ff73de04400c46b9b1855e94db7c84 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/58104 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Hieu C. Nguyen <hieu.nguyen@us.ibm.com> Reviewed-by: William G. Hoffa <wghoffa@us.ibm.com>
Diffstat (limited to 'src/build/debug')
-rw-r--r--src/build/debug/simics-debug-framework.py42
1 files changed, 0 insertions, 42 deletions
diff --git a/src/build/debug/simics-debug-framework.py b/src/build/debug/simics-debug-framework.py
index 097210198..a3bf1e63e 100644
--- a/src/build/debug/simics-debug-framework.py
+++ b/src/build/debug/simics-debug-framework.py
@@ -511,9 +511,6 @@ def magic_instruction_callback(user_arg, cpu, arg):
if arg == 7006: # MAGIC_SHUTDOWN
# KernelMisc::shutdown()
print "KernelMisc::shutdown() called."
- # Could break/stop/pause the simics run, but presently
- # shutdown() is called four times. --Monte Jan 2012
- # SIM_break_simulation( "Shutdown. Simulation stopped." )
if arg == 7007: # MAGIC_BREAK
# Stop the simulation, much like a hard-coded breakpoint
@@ -540,45 +537,6 @@ def magic_instruction_callback(user_arg, cpu, arg):
#SIM_run_alone( run_command, cmd )
print "MAGIC_LOAD_PAYLOAD not implemented\n";
- if arg == 7016:
- print "Wake up rest of CORE0 - 7017 start \n";
-
- # Set other threads on CORE0 to proper address
- setIar1 = "system_cmp0.cpu0_0_00_1->iar=0x100"
- setIar2 = "system_cmp0.cpu0_0_00_2->iar=0x100"
- setIar3 = "system_cmp0.cpu0_0_00_3->iar=0x100"
-
- setIarAll = "%s; %s; %s"%(setIar1,setIar2,setIar3)
- SIM_run_alone(run_command, setIarAll )
-
- # Enable rest of threads on CORE0
- enable1 = "system_cmp0.cpu0_0_00_1.enable"
- enable2 = "system_cmp0.cpu0_0_00_2.enable"
- enable3 = "system_cmp0.cpu0_0_00_3.enable"
- enableCore0 = "%s; %s; %s"%(enable1,enable2,enable3)
- SIM_run_alone(run_command, enableCore0 )
-
- if arg == 7017:
- print "Wake up FUSED threads - 7017 start \n";
-
- # Set CORE1 threads to proper address
- setIar4 = "system_cmp0.cpu0_0_01_0->iar=0x100"
- setIar5 = "system_cmp0.cpu0_0_01_1->iar=0x100"
- setIar6 = "system_cmp0.cpu0_0_01_2->iar=0x100"
- setIar7 = "system_cmp0.cpu0_0_01_3->iar=0x100"
- setHrmor = "system_cmp0.cpu0_0_01_0->hrmor=0x08000000"
-
- setIarAll = "%s; %s; %s; %s; %s"%(setIar4,setIar5,setIar6,setIar7,setHrmor)
- SIM_run_alone(run_command, setIarAll )
-
- # Enable all threads on CORE1
- enable4 = "system_cmp0.cpu0_0_01_0.enable"
- enable5 = "system_cmp0.cpu0_0_01_1.enable"
- enable6 = "system_cmp0.cpu0_0_01_2.enable"
- enable7 = "system_cmp0.cpu0_0_01_3.enable"
- enableCore1 = "%s; %s; %s; %s"%(enable4,enable5,enable6,enable7)
- SIM_run_alone(run_command, enableCore1 )
-
if arg == 7018: # MAGIC_BREAK_ON_ERROR
# Stop the simulation if an env var is set
if( os.environ.has_key('HB_BREAK_ON_ERROR') ):
OpenPOWER on IntegriCloud