diff options
author | Benjamin Weisenbeck <bweisenb@us.ibm.com> | 2016-01-22 08:52:55 -0600 |
---|---|---|
committer | Stephen Cprek <smcprek@us.ibm.com> | 2016-02-19 17:06:07 -0600 |
commit | d605b2b1813967164e36b1f95e6d85c8cd2c7ac6 (patch) | |
tree | 081ecec481ce450c827c26aa24842d17c68ecdd2 /src/usr/diag | |
parent | c387c6b560f72060317cac3b3a2ef81adea0d694 (diff) | |
download | talos-hostboot-d605b2b1813967164e36b1f95e6d85c8cd2c7ac6.tar.gz talos-hostboot-d605b2b1813967164e36b1f95e6d85c8cd2c7ac6.zip |
PRD: Fix processor-specific homer register lists
CQ: SW332952
Change-Id: I1abdfe95588da8128e37927cb1e42db0fb597891
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23529
Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com>
Tested-by: Jenkins Server
Reviewed-by: BENJAMIN J. WEISENBECK <bweisenb@us.ibm.com>
Reviewed-by: Brian J. Stegmiller <bjs@us.ibm.com>
Reviewed-by: Zane Shelley <zshelle@us.ibm.com>
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/23674
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/diag')
-rw-r--r-- | src/usr/diag/prdf/occ_firdata/prdfWriteHomerFirData.C | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/usr/diag/prdf/occ_firdata/prdfWriteHomerFirData.C b/src/usr/diag/prdf/occ_firdata/prdfWriteHomerFirData.C index 0c3e9a6ea..6b4aa9c8f 100644 --- a/src/usr/diag/prdf/occ_firdata/prdfWriteHomerFirData.C +++ b/src/usr/diag/prdf/occ_firdata/prdfWriteHomerFirData.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2015 */ +/* Contributors Listed Below - COPYRIGHT 2015,2016 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -660,7 +660,7 @@ errlHndl_t writeData( uint8_t * i_hBuf, size_t i_hBufSize, // Check Processor type bool isNaples = false; TargetHandleList list = getFunctionalTargetList( TYPE_PROC ); - if (list.size() > 0 && MODEL_NAPLES == getProcModel(list[0])) + if ((list.size() > 0) && (MODEL_NAPLES == getProcModel(list[0]))) isNaples = true; // Get the ultimate buffer size. @@ -672,12 +672,12 @@ errlHndl_t writeData( uint8_t * i_hBuf, size_t i_hBufSize, size_t sz_data = sizeof(o_data); sz_hBuf += sz_data; s[PROC][GLBL] = sizeof(proc_glbl); sz_hBuf += s[PROC][GLBL]; - s[PROC][FIR] = sizeof(proc_common_fir) + - isNaples ? sizeof(proc_naples_fir) : sizeof(proc_murano_venice_fir); + s[PROC][FIR] = sizeof(proc_common_fir) + ( isNaples ? + sizeof(proc_naples_fir) : sizeof(proc_murano_venice_fir) ); sz_hBuf += s[PROC][FIR]; - s[PROC][REG] = sizeof(proc_common_reg) + - isNaples ? sizeof(proc_naples_reg) : sizeof(proc_murano_venice_reg); + s[PROC][REG] = sizeof(proc_common_reg) + ( isNaples ? + sizeof(proc_naples_reg) : sizeof(proc_murano_venice_reg) ); sz_hBuf += s[PROC][REG]; s[EX][GLBL] = sizeof(ex_glbl); sz_hBuf += s[EX][GLBL]; @@ -732,7 +732,7 @@ errlHndl_t writeData( uint8_t * i_hBuf, size_t i_hBufSize, o_data.counts[c][REG] = s[c][REG] / u32; o_data.counts[c][IDFIR] = s[c][IDFIR] / u64; o_data.counts[c][IDREG] = s[c][IDREG] / u64; -} + } // Add everything to the buffer. uint32_t idx = 0; |