summaryrefslogtreecommitdiffstats
path: root/src/usr/diag/prdf/common/framework
diff options
context:
space:
mode:
authorZane Shelley <zshelle@us.ibm.com>2017-01-27 12:39:23 -0600
committerZane C. Shelley <zshelle@us.ibm.com>2017-02-10 17:34:46 -0500
commitb45d94fd891932bf0069becc841e384633540514 (patch)
tree8d8a71102b6583e652182e8565a82e708496ebd7 /src/usr/diag/prdf/common/framework
parent4989910e6b080fc1e7fd4838ad7b64e76e3560d1 (diff)
downloadtalos-hostboot-b45d94fd891932bf0069becc841e384633540514.tar.gz
talos-hostboot-b45d94fd891932bf0069becc841e384633540514.zip
PRD: Cleaned BitString contructor and accessor functions
Change-Id: I24e314ee964c77193c83586ffe25b014a3fb0827 RTC: 167819 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/35686 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Caleb N. Palmer <cnpalmer@us.ibm.com> Reviewed-by: Benjamin J. Weisenbeck <bweisenb@us.ibm.com> Reviewed-by: Zane C. Shelley <zshelle@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/36199 Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Diffstat (limited to 'src/usr/diag/prdf/common/framework')
-rwxr-xr-xsrc/usr/diag/prdf/common/framework/register/iipscr.C8
-rwxr-xr-xsrc/usr/diag/prdf/common/framework/register/prdfCaptureData.C4
2 files changed, 7 insertions, 5 deletions
diff --git a/src/usr/diag/prdf/common/framework/register/iipscr.C b/src/usr/diag/prdf/common/framework/register/iipscr.C
index f91c058ce..fac4cb854 100755
--- a/src/usr/diag/prdf/common/framework/register/iipscr.C
+++ b/src/usr/diag/prdf/common/framework/register/iipscr.C
@@ -5,7 +5,9 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* COPYRIGHT International Business Machines Corp. 1997,2014 */
+/* Contributors Listed Below - COPYRIGHT 1997,2017 */
+/* [+] International Business Machines Corp. */
+/* */
/* */
/* Licensed under the Apache License, Version 2.0 (the "License"); */
/* you may not use this file except in compliance with the License. */
@@ -195,13 +197,13 @@ void SCAN_COMM_REGISTER_CLASS::ClearBit
void SCAN_COMM_REGISTER_CLASS::clearAllBits()
{
BIT_STRING_CLASS & bitString = AccessBitString();
- bitString.Pattern( 0, bitString.GetLength(), 0x00000000, 32 );
+ bitString.Pattern( 0, bitString.getBitLen(), 0x00000000, 32 );
}
void SCAN_COMM_REGISTER_CLASS::setAllBits()
{
BIT_STRING_CLASS & bitString = AccessBitString();
- bitString.Pattern( 0, bitString.GetLength(), 0xffffffff, 32 );
+ bitString.Pattern( 0, bitString.getBitLen(), 0xffffffff, 32 );
}
//------------------------------------------------------------------------------
diff --git a/src/usr/diag/prdf/common/framework/register/prdfCaptureData.C b/src/usr/diag/prdf/common/framework/register/prdfCaptureData.C
index 803e9e622..907b1c28f 100755
--- a/src/usr/diag/prdf/common/framework/register/prdfCaptureData.C
+++ b/src/usr/diag/prdf/common/framework/register/prdfCaptureData.C
@@ -90,7 +90,7 @@ void CaptureData::AddDataElement( TargetHandle_t i_trgt, int i_scomId,
if ( !i_bs->IsZero() )
{
// Get the size of i_bs and ensure byte alignment.
- sz_buf = (i_bs->GetLength() + 8-1) / 8;
+ sz_buf = (i_bs->getBitLen() + 8-1) / 8;
// Since we are using a BitString below, which does everything on a
// CPU_WORD boundary, we must make sure the buffer is CPU_WORD aligned.
@@ -102,7 +102,7 @@ void CaptureData::AddDataElement( TargetHandle_t i_trgt, int i_scomId,
memset( buf, 0x00, sz_buf );
// Use a BitString to copy i_bs to the buffer.
- BIT_STRING_ADDRESS_CLASS bs ( 0, i_bs->GetLength(), (CPU_WORD *)buf );
+ BIT_STRING_ADDRESS_CLASS bs ( 0, i_bs->getBitLen(), (CPU_WORD *)buf );
bs.SetBits( *i_bs );
// Create the new data element.
OpenPOWER on IntegriCloud