From 2b40e2e100c7a0725762c40865d36ac7639e12cc Mon Sep 17 00:00:00 2001 From: Santosh Puranik Date: Fri, 16 Sep 2016 08:47:53 -0500 Subject: 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 Tested-by: Jenkins Server Reviewed-by: SRINIVAS V. POLISETTY Tested-by: PPE CI Reviewed-by: Sachin Gupta Reviewed-by: Jennifer A. Stofer Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/29840 Reviewed-by: Santosh S. Puranik --- src/tools/image/sbe_default_tool.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/tools/image') 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); -- cgit v1.2.1