From 3ecd7cf99fb44f88a24daca97874e512181ec8f1 Mon Sep 17 00:00:00 2001 From: Dan Crowell Date: Mon, 16 Apr 2018 13:38:20 -0500 Subject: 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 Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Hieu C. Nguyen Reviewed-by: William G. Hoffa --- src/usr/targeting/attrsync.C | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/usr/targeting') diff --git a/src/usr/targeting/attrsync.C b/src/usr/targeting/attrsync.C index fbc8db4b9..aadb06849 100644 --- a/src/usr/targeting/attrsync.C +++ b/src/usr/targeting/attrsync.C @@ -28,6 +28,7 @@ #include #include #include +#include using namespace ERRORLOG; @@ -143,6 +144,11 @@ namespace TARGETING } + // Tell Simics we are waiting for the FSP to do something + // simce the vast majority of the processing time is + // on the FSP side of things + MAGIC_WAITING_FOR_FSP(); + if(( l_errl == NULL ) && ( iv_total_pages != 0 )) { // tell fsp to commit the last section of data we sent @@ -154,6 +160,9 @@ namespace TARGETING } } + // Tell Simics we are done waiting + MAGIC_DONE_WAITING_FOR_FSP(); + }while(0); return l_errl; -- cgit v1.2.1