summaryrefslogtreecommitdiffstats
path: root/src/tools/image
diff options
context:
space:
mode:
authorSantosh Puranik <santosh.puranik@in.ibm.com>2016-09-16 08:47:53 -0500
committerSachin Gupta <sgupta2m@in.ibm.com>2016-09-19 13:06:32 -0400
commit2b40e2e100c7a0725762c40865d36ac7639e12cc (patch)
tree96dba84c8bd0c7dbae89eaa298a9345e0f291243 /src/tools/image
parentd6dcd0125e002508ea665a5b71eb2019a0274c91 (diff)
downloadtalos-sbe-2b40e2e100c7a0725762c40865d36ac7639e12cc.tar.gz
talos-sbe-2b40e2e100c7a0725762c40865d36ac7639e12cc.zip
Unpack attributes for Pervasive targets
-- Reserve space for all 64 possible chiplets Change-Id: I21b431205c84c8502b98364eb4c2befc31cdf3d9 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29839 Reviewed-by: Joseph J. McGill <jmcgill@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Reviewed-by: SRINIVAS V. POLISETTY <srinivan@in.ibm.com> Tested-by: PPE CI <ppe-ci+hostboot@us.ibm.com> Reviewed-by: Sachin Gupta <sgupta2m@in.ibm.com> Reviewed-by: Jennifer A. Stofer <stofer@us.ibm.com> Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29840 Reviewed-by: Santosh S. Puranik <santosh.puranik@in.ibm.com>
Diffstat (limited to 'src/tools/image')
-rw-r--r--src/tools/image/sbe_default_tool.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/image/sbe_default_tool.c b/src/tools/image/sbe_default_tool.c
index 82d34bc7..2600a365 100644
--- a/src/tools/image/sbe_default_tool.c
+++ b/src/tools/image/sbe_default_tool.c
@@ -94,13 +94,13 @@ void assertTarget(const char* str, unsigned int index)
exit(1);
}
} else if(strcmp(str, "TARGET_TYPE_PERV") == 0) {
- if (index > PERV_TARGET_COUNT) {
- fprintf(stderr, "sbe_default_tool: index (%d) is larger than PERV_TARGET_COUNT (%d)\n",
- index, PERV_TARGET_COUNT);
+ if (index > MAX_PERV_CHIPLETS) {
+ fprintf(stderr, "sbe_default_tool: index (%d) is larger than MAX_PERV_CHIPLETS (%d)\n",
+ index, MAX_PERV_CHIPLETS);
exit(1);
}
} else {
- if (index >= PERV_TARGET_COUNT) {
+ if (index >= MAX_PERV_CHIPLETS) {
fprintf(stderr, "sbe_default_tool: target not supported:");
fprintf(stderr, " %s\n", str);
exit(1);
OpenPOWER on IntegriCloud