diff options
Diffstat (limited to 'src/import/tools')
-rw-r--r-- | src/import/tools/imageProcs/p9_ipl_build.C | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/import/tools/imageProcs/p9_ipl_build.C b/src/import/tools/imageProcs/p9_ipl_build.C index 495d17ce..71babfad 100644 --- a/src/import/tools/imageProcs/p9_ipl_build.C +++ b/src/import/tools/imageProcs/p9_ipl_build.C @@ -5,7 +5,7 @@ /* */ /* OpenPOWER sbe Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2016 */ +/* Contributors Listed Below - COPYRIGHT 2016,2017 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -310,7 +310,8 @@ int ipl_build( char* i_fnSbeImage, if(rc == IMGBUILD_SUCCESS) { // update our SBE image size to include the new block of rings - sbeImageSize += l_blockSize; + // and make sure it's 8 byte aligned + sbeImageSize += ((l_blockSize + 7) / 8) * 8; // grow our workspace void* tmp = realloc(sbeImage, sbeImageSize); |