diff options
author | Sumit Kumar <sumit_kumar@in.ibm.com> | 2019-02-04 03:53:09 -0600 |
---|---|---|
committer | Christian R. Geddes <crgeddes@us.ibm.com> | 2019-03-16 14:54:02 -0500 |
commit | 395f284926ab9d6e920296d1bbc9d2f734ad284d (patch) | |
tree | 26329dddb916fa307272dbf2f38369520e65d7c1 /src/import/hwpf/fapi2/tools | |
parent | 4d983e4c8bdd4c190ccbfd5e36dfbaa2a22a4951 (diff) | |
download | talos-hostboot-395f284926ab9d6e920296d1bbc9d2f734ad284d.tar.gz talos-hostboot-395f284926ab9d6e920296d1bbc9d2f734ad284d.zip |
FAPI_Infra:Add new member to structure ErrorInfoHwCallout
Enabling new member addition to the structure ErrorInfoHwCallout
to pass on the clock position wrt target.
Change-Id: I9501a418945143fbdb49519644cecdc31edaf04d
CQ:SW449714
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71281
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Richard J. Knight <rjknight@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Reviewed-by: Manish K. Chowdhary <manichow@in.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/71313
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Diffstat (limited to 'src/import/hwpf/fapi2/tools')
-rwxr-xr-x | src/import/hwpf/fapi2/tools/parseErrorInfo.pl | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/src/import/hwpf/fapi2/tools/parseErrorInfo.pl b/src/import/hwpf/fapi2/tools/parseErrorInfo.pl index 0ebb81bc4..c6044e5b8 100755 --- a/src/import/hwpf/fapi2/tools/parseErrorInfo.pl +++ b/src/import/hwpf/fapi2/tools/parseErrorInfo.pl @@ -6,7 +6,7 @@ # # OpenPOWER HostBoot Project # -# Contributors Listed Below - COPYRIGHT 2015,2018 +# Contributors Listed Below - COPYRIGHT 2015,2019 # [+] International Business Machines Corp. # # @@ -66,6 +66,7 @@ my $ffdc_type = "fapi2::ffdc_t"; my $mcast_type = "fapi2::mcast_t"; my $scom_addr_type = "uint64_t"; my $ffdc_count = 0; +my $clock_ffdc_type = "uint8_t"; # There are some names used in the XML files which exist in either # c++ keywords (case, for example) or macros (DOMAIN). The one's which @@ -292,7 +293,7 @@ sub addFfdcMethod # If we're generating empty classes, not using an argument name will avoid the unused parameter warnings my $param = ( $arg_empty_ffdc eq undef ) ? "i_value" : ""; - if ( $type eq $ffdc_type ) + if ( $type eq $ffdc_type || $type eq $clock_ffdc_type ) { $method = " template< typename T >\n"; $method .= " inline $class_name& set_$ffdc_uc(const T& $param)\n"; @@ -1071,6 +1072,24 @@ foreach my $argnum ( 0 .. $#ARGV ) { $eiEntryStr .= " l_entries[$eiEntryCount].hw_callout.iv_refObjIndex = 0xff; \\\n"; } + + # HW Callout - Clock position + if ( exists $callout->{hw}->{clkPos} ) + { + # Add the Targets to the objectlist if they don't already exist + my $objNum1 = addEntryToArray( \@eiObjects, $callout->{hw}->{clkPos} ); + + $eiEntryStr .= + " l_entries[$eiEntryCount].hw_callout.iv_clkPos = $callout->{hw}->{clkPos}; \\\n"; + + # Add a method to the ffdc-gathering class + addFfdcMethod( \%methods, $callout->{hw}->{clkPos}, $err->{rc}, $clock_ffdc_type, $objNum1 ); + } + else + { + $eiEntryStr .= " l_entries[$eiEntryCount].hw_callout.iv_clkPos = 0xff; \\\n"; + } + $eiEntryCount++; $elementsFound++; } |