From c039e9338b69f1274bd637bcf651131d51e78363 Mon Sep 17 00:00:00 2001 From: spashabk-in Date: Mon, 17 Jul 2017 02:08:19 -0500 Subject: Fix for pibmem attribute dump Alignement fix for attr dump Collect attrdump in simics Fix in sbe-debug.py to determine file not found Change-Id: Ia55ccdb21e19a2f43d1f6255dc5f5533689eb8e1 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/43204 Tested-by: Jenkins Server Tested-by: FSP CI Jenkins Reviewed-by: Sachin Gupta Reviewed-by: RAJA DAS Reviewed-by: AMIT J. TENDOLKAR --- src/hwpf/plat_target_utils.H | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'src/hwpf') diff --git a/src/hwpf/plat_target_utils.H b/src/hwpf/plat_target_utils.H index 0c54e2cc..0a2d525d 100644 --- a/src/hwpf/plat_target_utils.H +++ b/src/hwpf/plat_target_utils.H @@ -6,6 +6,7 @@ /* OpenPOWER sbe Project */ /* */ /* Contributors Listed Below - COPYRIGHT 2012,2017 */ +/* [+] International Business Machines Corp. */ /* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ @@ -31,17 +32,14 @@ #include -#pragma pack(8) //Start of packing to 8byte boundary - typedef struct { - fapi2attr::SystemAttributes_t G_system_attrs; - fapi2attr::ProcChipAttributes_t G_proc_chip_attrs; - fapi2attr::PervAttributes_t G_perv_attrs; - fapi2attr::CoreAttributes_t G_core_attrs; - fapi2attr::EXAttributes_t G_ex_attrs; - fapi2attr::EQAttributes_t G_eq_attrs; - } G_sbe_attrs_t; -#pragma pack()//End of packing to 8byte boundary - +typedef struct { + fapi2attr::SystemAttributes_t G_system_attrs __attribute__ ((aligned (8))); + fapi2attr::ProcChipAttributes_t G_proc_chip_attrs __attribute__ ((aligned (8))); + fapi2attr::PervAttributes_t G_perv_attrs __attribute__ ((aligned (8))); + fapi2attr::CoreAttributes_t G_core_attrs __attribute__ ((aligned (8))); + fapi2attr::EXAttributes_t G_ex_attrs __attribute__ ((aligned (8))); + fapi2attr::EQAttributes_t G_eq_attrs __attribute__ ((aligned (8))); +} G_sbe_attrs_t; // // Platform Utility functions.. // -- cgit v1.2.1