diff options
author | Matt Derksen <mderkse1@us.ibm.com> | 2018-01-17 08:56:53 -0600 |
---|---|---|
committer | Daniel M. Crowell <dcrowell@us.ibm.com> | 2018-01-21 21:55:50 -0500 |
commit | f6f8c953755a402c119a23439b5c2f38a054a5a0 (patch) | |
tree | 1b7271c0e5694e83e79c72e52f805d437a3313a6 /src/import/hwpf/fapi2/tools | |
parent | 6b21ff6c1caffaab39fdc517228a64400b415fc0 (diff) | |
download | talos-hostboot-f6f8c953755a402c119a23439b5c2f38a054a5a0.tar.gz talos-hostboot-f6f8c953755a402c119a23439b5c2f38a054a5a0.zip |
EKB side of changes for attributeOverride tool in x86.nfp context
Change-Id: Ibc514c12567ab472d0eb55106356c84deff1897b
CQ:SW411365
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/52091
Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com>
Reviewed-by: Martin Gloff <mgloff@us.ibm.com>
Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com>
Tested-by: HWSV CI <hwsv-ci+hostboot@us.ibm.com>
Tested-by: Hostboot CI <hostboot-ci+hostboot@us.ibm.com>
Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com>
Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com>
Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com>
Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/52098
Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com>
Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/import/hwpf/fapi2/tools')
-rwxr-xr-x | src/import/hwpf/fapi2/tools/parseAttributeInfo.pl | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/import/hwpf/fapi2/tools/parseAttributeInfo.pl b/src/import/hwpf/fapi2/tools/parseAttributeInfo.pl index f645de8f4..915b71370 100755 --- a/src/import/hwpf/fapi2/tools/parseAttributeInfo.pl +++ b/src/import/hwpf/fapi2/tools/parseAttributeInfo.pl @@ -6,7 +6,7 @@ # # OpenPOWER HostBoot Project # -# Contributors Listed Below - COPYRIGHT 2015,2017 +# Contributors Listed Below - COPYRIGHT 2015,2018 # [+] International Business Machines Corp. # # @@ -252,6 +252,7 @@ my %attrSyncData = (); #------------------------------------------------------------------------------- # Print header of getFapiAttrEnumData.C # ------------------------------------------------------------------------------ +print FEFILE "// Created via parseAttributeInfo.pl\n"; print FEFILE "const AttributeEnum g_FapiEnums[] = {\n"; my @attrOverrideEnums = (); @@ -569,7 +570,18 @@ foreach my $argnum ( 0 .. $#ARGV ) $value =~ s/\s+$//; } - push @attrOverrideEnums, "\t{ \"$attr->{id}_$values[0]\", $values[1] },\n"; + # Need to add LL/ULL extensions so this generated file + # will compile in x86.nfp context + my $number = $values[1]; + if ( $attr->{valueType} eq 'uint64' ) + { + $number .= "ULL"; + } + elsif ( $attr->{valueType} eq 'int64' ) + { + $number .= "LL"; + } + push @attrOverrideEnums, "\t{ \"$attr->{id}_$values[0]\", $number },\n"; # Print the attribute enum to attribute_ids.H print AIFILE " ENUM_$attr->{id}_${val}"; |