projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4285990
)
Fix a regular expression problem when recognizing labels for string substitution.
author
Gabe Black
<gblack@eecs.umich.edu>
Wed, 4 Apr 2007 23:19:32 +0000
(23:19 +0000)
committer
Gabe Black
<gblack@eecs.umich.edu>
Wed, 4 Apr 2007 23:19:32 +0000
(23:19 +0000)
--HG--
extra : convert_revision :
ba398e1b434efda28882f159d5a4419302276371
src/arch/isa_parser.py
patch
|
blob
|
history
diff --git
a/src/arch/isa_parser.py
b/src/arch/isa_parser.py
index 0cb7bfc56b81e54e41408bd904b41c13c44459a9..4c8d0706d9f35308a331d47e9ce5644b76b266b6 100755
(executable)
--- a/
src/arch/isa_parser.py
+++ b/
src/arch/isa_parser.py
@@
-1032,7
+1032,7
@@
def substBitOps(code):
# Template objects are format strings that allow substitution from
# the attribute spaces of other objects (e.g. InstObjParams instances).
-labelRE = re.compile(r'
[^%]
%\(([^\)]+)\)[sd]')
+labelRE = re.compile(r'
(?<!%)
%\(([^\)]+)\)[sd]')
class Template:
def __init__(self, t):