summaryrefslogtreecommitdiffstats
path: root/src/usr/initservice
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/usr/initservice
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/usr/initservice')
-rw-r--r--src/usr/initservice/istepdispatcher/istepdispatcher.C6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/usr/initservice/istepdispatcher/istepdispatcher.C b/src/usr/initservice/istepdispatcher/istepdispatcher.C
index 4b65fa661..35c7568f9 100644
--- a/src/usr/initservice/istepdispatcher/istepdispatcher.C
+++ b/src/usr/initservice/istepdispatcher/istepdispatcher.C
@@ -1434,6 +1434,9 @@ void IStepDispatcher::waitForSyncPoint()
}
else
{
+ // Tell Simics we are waiting for the FSP to do something
+ MAGIC_WAITING_FOR_FSP();
+
// Wait for the condition variable to be signalled
mutex_lock(&iv_mutex);
while((!iv_syncPointReached) && (!iv_shutdown))
@@ -1451,6 +1454,9 @@ void IStepDispatcher::waitForSyncPoint()
iv_syncPointReached = false;
mutex_unlock(&iv_mutex);
}
+
+ // Tell Simics we are done waiting
+ MAGIC_DONE_WAITING_FOR_FSP();
}
TRACFCOMP(g_trac_initsvc, EXIT_MRK"IStepDispatcher::waitForSyncPoint");
OpenPOWER on IntegriCloud