diff options
author | Greg Still <stillgs@us.ibm.com> | 2015-08-18 22:55:42 -0500 |
---|---|---|
committer | Gregory S. Still <stillgs@us.ibm.com> | 2015-09-08 10:55:31 -0500 |
commit | 6b8b5cd3fd404afa693358125c1659a74f21b7e3 (patch) | |
tree | e507099060ad391c326c35d897c07728e13cb9e1 /tools/image/sbe_default_tool.c | |
parent | 07699a5c8dbf0b9fa4bfce3ae16fecc0a905029c (diff) | |
download | talos-sbe-6b8b5cd3fd404afa693358125c1659a74f21b7e3.tar.gz talos-sbe-6b8b5cd3fd404afa693358125c1659a74f21b7e3.zip |
Support TARGET_TYPE_SYSTEM PPE attributes
- Add support for SYSTEM types
- Fix attribute "setting" bug for scalar attributes only;
array attributes untested
- Add nest_attributes.xml
- Reduce extra whitespace per Gerrit comments (more)
- Added debug switch to ppeParseAtteibuteInfo.pl
- Add system attributes to merged .fixed section (base_ppe_header.S,
proc_sbe_fixed.H, topfiles.mk)
- Fixed FAPI2 regression setup based on newest SEEPROM and PIBMEM (SBE)
linker layout. This implicates the Makefile (eg new "seeprom" rule).
- Fix rebase issues with new commits. Added necessary dependent files
and missing attribute enablement
- Rebased with the merged "Fix compile" commit which moves the definition
and setting of the global variables associated with attributes to target.C
Change-Id: Iadbe080dec1558079ca6fe9c8fa711b098ba1e0b
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/20078
Tested-by: Jenkins Server
Reviewed-by: Gregory S. Still <stillgs@us.ibm.com>
Diffstat (limited to 'tools/image/sbe_default_tool.c')
-rw-r--r-- | tools/image/sbe_default_tool.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/tools/image/sbe_default_tool.c b/tools/image/sbe_default_tool.c index 817eee09..975c017d 100644 --- a/tools/image/sbe_default_tool.c +++ b/tools/image/sbe_default_tool.c @@ -29,6 +29,7 @@ const char* g_usage = "The 'value' is the value of the attribute to be set.\n" "\n" "The 'target type' is the type of the target. The following targets are defined:\n" +"TARGET_TYPE_SYSTEM: system target\n" "TARGET_TYPE_PROC_CHIP: chip target\n" "TARGET_TYPE_PERV: pervasive target\n" "TARGET_TYPE_CORE: core target\n" @@ -45,48 +46,43 @@ const char* g_usage = void assertTarget(const char* str, unsigned int index) { - if(strcmp(str, "TARGET_TYPE_PROC_CHIP") == 0) { + if(strcmp(str, "TARGET_TYPE_SYSTEM") == 0 || (strcmp(str, "TARGET_TYPE_PROC_CHIP") == 0)) { if (index > 0) { fprintf(stderr, "sbe_default_tool: index (%d) is larger than 0\n", index); exit(1); } - return; } else if(strcmp(str, "TARGET_TYPE_EX") == 0) { if (index > EX_TARGET_COUNT) { fprintf(stderr, "sbe_default_tool: index (%d) is larger than EX_TARGET_COUNT (%d)\n", index, EX_TARGET_COUNT); exit(1); } - return; } else if(strcmp(str, "TARGET_TYPE_EQ") == 0) { if (index > EQ_TARGET_COUNT) { fprintf(stderr, "sbe_default_tool: index (%d) is larger than EQ_TARGET_COUNT (%d)\n", index, EQ_TARGET_COUNT); exit(1); } - return; } else if(strcmp(str, "TARGET_TYPE_CORE") == 0) { if (index > CORE_TARGET_COUNT) { fprintf(stderr, "sbe_default_tool: index (%d) is larger than CORE_TARGET_COUNT (%d)\n", index, CORE_TARGET_COUNT); exit(1); } - return; } 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); exit(1); } - return; } else { - if (index >= PERV_TARGET_COUNT) { fprintf(stderr, "sbe_default_tool: target not supported:"); fprintf(stderr, " %s\n", str); exit(1); } } + return; } void setAttribute(void* image, const char* attribute, unsigned int index, uint64_t val) { |