summaryrefslogtreecommitdiffstats
path: root/src/import/hwpf/fapi2
diff options
context:
space:
mode:
authorMatt Derksen <mderkse1@us.ibm.com>2018-01-17 08:56:53 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2018-01-21 21:55:50 -0500
commitf6f8c953755a402c119a23439b5c2f38a054a5a0 (patch)
tree1b7271c0e5694e83e79c72e52f805d437a3313a6 /src/import/hwpf/fapi2
parent6b21ff6c1caffaab39fdc517228a64400b415fc0 (diff)
downloadtalos-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')
-rw-r--r--src/import/hwpf/fapi2/include/target_types.H5
-rwxr-xr-xsrc/import/hwpf/fapi2/tools/parseAttributeInfo.pl16
2 files changed, 18 insertions, 3 deletions
diff --git a/src/import/hwpf/fapi2/include/target_types.H b/src/import/hwpf/fapi2/include/target_types.H
index f9aec708a..ecf4f0deb 100644
--- a/src/import/hwpf/fapi2/include/target_types.H
+++ b/src/import/hwpf/fapi2/include/target_types.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2015,2017 */
+/* Contributors Listed Below - COPYRIGHT 2015,2018 */
/* [+] International Business Machines Corp. */
/* */
/* */
@@ -253,12 +253,15 @@ enum TargetFilter : uint64_t
};
+// attributeOverride tool requires x86.nfp compile
+#ifndef CONTEXT_x86_nfp
/// @cond
constexpr TargetType operator|(TargetType x, TargetType y)
{
return static_cast<TargetType>(static_cast<int>(x) |
static_cast<int>(y));
}
+#endif
template<uint64_t V>
class bitCount
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}";
OpenPOWER on IntegriCloud