diff options
author | Prasad Bg Ranganath <prasadbgr@in.ibm.com> | 2016-10-11 21:31:16 -0500 |
---|---|---|
committer | Sachin Gupta <sgupta2m@in.ibm.com> | 2016-10-12 10:04:46 -0400 |
commit | b713730671a4bc7d43ed4ebfba1ab2295c4b9784 (patch) | |
tree | 9f92cbfb205d3003bbe894c0ad5c7d733fd9e077 /src/import/chips/p9/utils/p9_putRingUtils.C | |
parent | c7c77ebdea1dde8db80cea43c74673b481571f15 (diff) | |
download | talos-sbe-b713730671a4bc7d43ed4ebfba1ab2295c4b9784.tar.gz talos-sbe-b713730671a4bc7d43ed4ebfba1ab2295c4b9784.zip |
SBE: PUTRING chipop support
Change-Id: I04e5694b2d842cbf1a442e8507935bbcd8ab4c12
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31037
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/31049
Reviewed-by: Hostboot Team <hostboot@us.ibm.com>
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com>
Diffstat (limited to 'src/import/chips/p9/utils/p9_putRingUtils.C')
-rw-r--r-- | src/import/chips/p9/utils/p9_putRingUtils.C | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/import/chips/p9/utils/p9_putRingUtils.C b/src/import/chips/p9/utils/p9_putRingUtils.C index 8273920e..3731e788 100644 --- a/src/import/chips/p9/utils/p9_putRingUtils.C +++ b/src/import/chips/p9/utils/p9_putRingUtils.C @@ -1084,7 +1084,7 @@ fapi2::ReturnCode restoreOPCGRegData( fapi2::ReturnCode rs4DecompressionSvc( const fapi2::Target<fapi2::TARGET_TYPE_ALL>& i_target, const uint8_t* i_rs4, - const bool i_applyOverride, + bool i_applyOverride, const fapi2::RingMode i_ringMode, const RINGTYPE i_ringType) { @@ -1175,7 +1175,7 @@ fapi2::ReturnCode rs4DecompressionSvc( //Need to skip 64bits , because we have already written header //data. - if (l_skip_64bits) + if (l_skip_64bits && (l_bitRotates >= SIXTYFOUR_BIT_HEADER) ) { l_bitRotates -= SIXTYFOUR_BIT_HEADER; l_skip_64bits = false; @@ -1220,7 +1220,7 @@ fapi2::ReturnCode rs4DecompressionSvc( break; } - if (!i_applyOverride) + if ((!i_applyOverride) && l_scanCount != 0xF) { l_bitsDecoded += (4 * l_scanCount); @@ -1256,6 +1256,7 @@ fapi2::ReturnCode rs4DecompressionSvc( { if(0xF == l_scanCount) // We are parsing RS4 for override rings { + i_applyOverride = true; uint8_t l_careMask = rs4_get_nibble(l_rs4Str, l_nibbleIndx); l_nibbleIndx++; |