summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-11-05 17:21:25 -0800
committerNathan Binkert <nate@binkert.org>2009-11-05 17:21:25 -0800
commit52ccfde2cdd4558e81e8eaf923c6952b3530ef0b (patch)
tree0a13fccfc07a2bfda2d1bd54e791e0a913ae142e /src
parent589218168c5ae1ed143372e43dbc468369a1bb8f (diff)
downloadgem5-52ccfde2cdd4558e81e8eaf923c6952b3530ef0b.tar.xz
isa_parser: allow negative integer literals
Diffstat (limited to 'src')
-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 2db7c6aa6..bd45a8313 100755
--- a/src/arch/isa_parser.py
+++ b/src/arch/isa_parser.py
@@ -128,7 +128,7 @@ class ISAParser(Grammar):
# Integer literal
def t_INTLIT(self, t):
- r'(0x[\da-fA-F]+)|\d+'
+ r'-?(0x[\da-fA-F]+)|\d+'
try:
t.value = int(t.value,0)
except ValueError: