diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2007-04-04 14:28:43 +0000 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2007-04-04 14:28:43 +0000 |
commit | 7f5409f2babd4fe26c364aedf7faf4cdcb0eb3f0 (patch) | |
tree | 2b27e525833c19786f5fd1d03ba8aca9838d344b | |
parent | 65fedeb5a7fd6ebb25379e20845f75635f28fdb6 (diff) | |
download | gem5-7f5409f2babd4fe26c364aedf7faf4cdcb0eb3f0.tar.xz |
Make "Name" really be the same as "name" with only the first letter capitalized. Before, it had the first letter capitalized but all the others lower case
--HG--
extra : convert_revision : bcbb28f2bf268765c1d37075a4417a4a6c1b9588
-rwxr-xr-x | src/arch/isa_parser.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/arch/isa_parser.py b/src/arch/isa_parser.py index a0d671da1..0cb7bfc56 100755 --- a/src/arch/isa_parser.py +++ b/src/arch/isa_parser.py @@ -866,7 +866,11 @@ class Format: context = {} updateExportContext() context.update(exportContext) - context.update({ 'name': name, 'Name': string.capitalize(name) }) + if len(name): + Name = name[0].upper() + if len(name) > 1: + Name += name[1:] + context.update({ 'name': name, 'Name': Name }) try: vars = self.func(self.user_code, context, *args[0], **args[1]) except Exception, exc: |