summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2007-04-04 23:19:32 +0000
committerGabe Black <gblack@eecs.umich.edu>2007-04-04 23:19:32 +0000
commitab2bed349b356b4784e1a6c8fdf6f4a86e27f543 (patch)
treeafa6065a13c242175bca1619655b42b50b28b00e /src/arch
parent4285990a96bad869bc1046f28f99cf7f4b5c8de0 (diff)
downloadgem5-ab2bed349b356b4784e1a6c8fdf6f4a86e27f543.tar.xz
Fix a regular expression problem when recognizing labels for string substitution.
--HG-- extra : convert_revision : ba398e1b434efda28882f159d5a4419302276371
Diffstat (limited to 'src/arch')
-rwxr-xr-xsrc/arch/isa_parser.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/arch/isa_parser.py b/src/arch/isa_parser.py
index 0cb7bfc56..4c8d0706d 100755
--- 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):