diff options
author | Yue Du <daviddu@us.ibm.com> | 2015-03-09 15:52:41 -0500 |
---|---|---|
committer | Glenn R. Miles <milesg@us.ibm.com> | 2015-03-09 16:11:56 -0500 |
commit | 06b1b727cb8330b8108474b4c4ee486bcd1710a1 (patch) | |
tree | 2b4c7f2cfd984212808fe02bbf7858de0520325c /tools | |
parent | f08700ec353ff65467239241558fcdf1a87e377f (diff) | |
download | talos-sbe-06b1b727cb8330b8108474b4c4ee486bcd1710a1.tar.gz talos-sbe-06b1b727cb8330b8108474b4c4ee486bcd1710a1.zip |
P2PScript: fix "Warning: end of file in comment; newline inserted"
Change-Id: I49459315ad22cac3f800eccf5f3f0ba8575666bf
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/16249
Reviewed-by: Glenn R. Miles <milesg@us.ibm.com>
Tested-by: Glenn R. Miles <milesg@us.ibm.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/PowerPCtoPPE/ppc-ppe-pcp.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tools/PowerPCtoPPE/ppc-ppe-pcp.py b/tools/PowerPCtoPPE/ppc-ppe-pcp.py index 53c2757f..80bb3f35 100755 --- a/tools/PowerPCtoPPE/ppc-ppe-pcp.py +++ b/tools/PowerPCtoPPE/ppc-ppe-pcp.py @@ -827,15 +827,16 @@ def p2p_onefile(ppcFileName): # terminate Makefile or execution if an error is detected sys.exit(1) - if P2P_COMMENT: + if P2P_COMMENT and P2P_PROFILE: f = open(ppeFileName, 'a') f.write("#P2P: space(%d) cycle(%d)" % (P2P_SPACE,P2P_CYCLE)) f.close() - if P2P_VERBOSE : + if P2P_VERBOSE: print "Generated PPE assembly: " + ppeFileName - print "Optimization Profiling: " + str(P2P_SPACE*4) + " bytes, " +\ - str(P2P_CYCLE) + " cycles." + if P2P_PROFILE: + print "Optimization Profiling: " + str(P2P_SPACE*4) + " bytes, " +\ + str(P2P_CYCLE) + " cycles." # ----------------------------------------------------------------------------- @@ -912,6 +913,8 @@ def p2p_main(): global P2P_VERBOSE; P2P_VERBOSE = options.verbose # leave a comment mark in output files global P2P_COMMENT; P2P_COMMENT = options.comment + # space/performance profiling function + global P2P_PROFILE; P2P_PROFILE = options.profile # enable instruction replace functions global P2P_REPLACE; P2P_REPLACE = options.replace # enable instruction combine functions |