diff options
author | CamVan Nguyen <ctnguyen@us.ibm.com> | 2012-08-17 13:21:39 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-08-20 13:22:42 -0500 |
commit | 582304840f1e3b12a8dbcf4f0621737e3b6a7707 (patch) | |
tree | 455f0985451e74af9a365df169acfe877058eebd /src | |
parent | ce4006ce81bddbfe93de586ae5011f80f6dfcf35 (diff) | |
download | talos-hostboot-582304840f1e3b12a8dbcf4f0621737e3b6a7707.tar.gz talos-hostboot-582304840f1e3b12a8dbcf4f0621737e3b6a7707.zip |
Enable calling of proc_revert_sbe_mcs_setup in Simics.
Change-Id: I764a7040a6df8d2718cb66a1dadf86a072a99ae3
RTC: 45169
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/1556
Tested-by: Jenkins Server
Reviewed-by: MIKE J. JONES <mjjones@us.ibm.com>
Reviewed-by: Van H. Lee <vanlee@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/usr/hwpf/hwp/slave_sbe/slave_sbe.C | 40 |
1 files changed, 12 insertions, 28 deletions
diff --git a/src/usr/hwpf/hwp/slave_sbe/slave_sbe.C b/src/usr/hwpf/hwp/slave_sbe/slave_sbe.C index 295898233..b331297cf 100644 --- a/src/usr/hwpf/hwp/slave_sbe/slave_sbe.C +++ b/src/usr/hwpf/hwp/slave_sbe/slave_sbe.C @@ -62,39 +62,23 @@ void call_proc_revert_sbe_mcs_setup(void *io_pArgs) TRACDCOMP( ISTEPS_TRACE::g_trac_isteps_trace, "call_proc_revert_sbe_mcs_setup entry" ); - // TODO - // This currently fails on Simics because this touches a Murano chip - // register that doesn't exist in the Venice chip. When Simcs supports - // a Murano chip, this HWP can be executed. For now, just execute the - // HWP on VPO - TARGETING::Target * l_pSysTarget = NULL; - TARGETING::targetService().getTopLevelTarget(l_pSysTarget); - uint8_t l_vpoMode = l_pSysTarget->getAttr<TARGETING::ATTR_IS_SIMULATION>(); - if (!l_vpoMode) + TARGETING::Target* l_pProcTarget = NULL; + TARGETING::targetService().masterProcChipTargetHandle(l_pProcTarget); + + fapi::Target l_fapiProcTarget(fapi::TARGET_TYPE_PROC_CHIP, l_pProcTarget); + + // Invoke the HWP + FAPI_INVOKE_HWP(l_errl, proc_revert_sbe_mcs_setup, l_fapiProcTarget); + + if (l_errl) { TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace, - "INFO : not executing proc_revert_sbe_mcs_setup until murano chip in Simics"); + "ERROR : failed executing proc_revert_sbe_mcs_setup returning error"); } else { - TARGETING::Target* l_pProcTarget = NULL; - TARGETING::targetService().masterProcChipTargetHandle(l_pProcTarget); - - fapi::Target l_fapiProcTarget(fapi::TARGET_TYPE_PROC_CHIP, l_pProcTarget); - - // Invoke the HWP - FAPI_INVOKE_HWP(l_errl, proc_revert_sbe_mcs_setup, l_fapiProcTarget); - - if (l_errl) - { - TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace, - "ERROR : failed executing proc_revert_sbe_mcs_setup returning error"); - } - else - { - TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace, - "SUCCESS : proc_revert_sbe_mcs_setup completed ok"); - } + TRACFCOMP(ISTEPS_TRACE::g_trac_isteps_trace, + "SUCCESS : proc_revert_sbe_mcs_setup completed ok"); } TRACDCOMP(ISTEPS_TRACE::g_trac_isteps_trace, |