summaryrefslogtreecommitdiffstats
path: root/src/usr/sbe/test/sbeupdatetest.H
diff options
context:
space:
mode:
authorMarty Gloff <mgloff@us.ibm.com>2016-06-21 13:11:27 -0500
committerDaniel M. Crowell <dcrowell@us.ibm.com>2016-07-27 14:35:29 -0400
commit1cf86502a50785bed28c15f47d24f452e83b0892 (patch)
tree5edc8374c60c0df60917af9816480128a69316a6 /src/usr/sbe/test/sbeupdatetest.H
parent08bd1261d0be0ff0335c97e2d2f6b2d4c3ea2484 (diff)
downloadtalos-hostboot-1cf86502a50785bed28c15f47d24f452e83b0892.tar.gz
talos-hostboot-1cf86502a50785bed28c15f47d24f452e83b0892.zip
Changes for P9 SBE - P8 port and FAPI2 convert
1) Compare master to master-p8 and make any necessary updates 2) Change from FAPI to FAPI2 interfaces Change-Id: I0cc2938612c2e4206c418bfdd851a01c2c473b5b RTC: 156465 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/26096 Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Michael Baiocchi <mbaiocch@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/sbe/test/sbeupdatetest.H')
-rw-r--r--src/usr/sbe/test/sbeupdatetest.H63
1 files changed, 3 insertions, 60 deletions
diff --git a/src/usr/sbe/test/sbeupdatetest.H b/src/usr/sbe/test/sbeupdatetest.H
index bbdeb1e43..8160fc3b6 100644
--- a/src/usr/sbe/test/sbeupdatetest.H
+++ b/src/usr/sbe/test/sbeupdatetest.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2013,2015 */
+/* Contributors Listed Below - COPYRIGHT 2013,2016 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -182,65 +182,8 @@ class SBEUpdateTest: public CxxTest::TestSuite
{
public:
- /**
- * @brief This function will test __trimCoreMask
- */
- void testTrimBitMask( void )
- {
-
- uint64_t fails = 0x0;
- uint64_t total = 0x0;
-
- do{
-
- TRACFCOMP( g_trac_sbe,
- ENTER_MRK"testTrimBitMask()" );
-
- struct
- {
- uint32_t inMask;
- uint32_t maxBits;
- uint32_t outMask;
- } testData[] =
- {
- {0xFFFFFFFF, 10, 0x000003FF},
- {0xFFFFFFFF, 32, 0xFFFFFFFF},
- {0x0000FF00, 4, 0x00000F00},
- {0x0000FA30, 3, 0x00000230},
- {0x0000FF00, 8, 0x0000FF00},
- {0x0000FF50, 16, 0x0000FF50},
- {0x0000EC50, 4, 0x00000C50},
- {0x000000FF, 5, 0x0000001F},
- {0x000000FF, 8, 0x000000FF},
- {0x11111111, 5, 0x00011111},
- {0x55555555, 11, 0x00155555},
- };
- const uint32_t NUM_TESTS = sizeof(testData)/sizeof(testData[0]);
-
- uint32_t retMask = 0;
-
- for(uint32_t i=0; i < NUM_TESTS; i++)
- {
- retMask = trimBitMask(testData[i].inMask,
- testData[i].maxBits);
- total++;
- if(retMask != testData[i].outMask)
- {
- fails++;
- TRACFCOMP( g_trac_sbe, ERR_MRK"testTrimBitMask() - i=%d, "
- "retMask=0x%.8X, expMask=0x%.8X",
- i, retMask, testData[i].outMask);
- TS_FAIL("testTrimBitMask() - Return data did not match "
- "expected data.");
- }
- }
-
- }while(0);
-
- TRACFCOMP( g_trac_sbe,
- EXIT_MRK"testTrimBitMask - %d/%d fails",
- fails, total );
- }
+ // @TODO RTC:158044 testTrimBitMask removed after earlier review comment
+ // may still be needed. Use Story 158044 to replace.
/**
* @brief This function will test SBE Update's ability
OpenPOWER on IntegriCloud