diff options
author | Nathan Binkert <nate@binkert.org> | 2009-11-05 17:21:25 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2009-11-05 17:21:25 -0800 |
commit | 52ccfde2cdd4558e81e8eaf923c6952b3530ef0b (patch) | |
tree | 0a13fccfc07a2bfda2d1bd54e791e0a913ae142e /src | |
parent | 589218168c5ae1ed143372e43dbc468369a1bb8f (diff) | |
download | gem5-52ccfde2cdd4558e81e8eaf923c6952b3530ef0b.tar.xz |
isa_parser: allow negative integer literals
Diffstat (limited to 'src')
-rwxr-xr-x | src/arch/isa_parser.py | 2 |
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: |