summaryrefslogtreecommitdiff
path: root/src/arch/isa_parser.py
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2011-07-05 18:30:04 -0700
committerNathan Binkert <nate@binkert.org>2011-07-05 18:30:04 -0700
commit3d252f8e5fa2ec3f55730ab6d5d1a4a1b21b2cdf (patch)
tree9142c3ced15b46cb426a5470bd2819346758f321 /src/arch/isa_parser.py
parenta4bd05dc379091fa20d52529b245f557d4e4c2e5 (diff)
downloadgem5-3d252f8e5fa2ec3f55730ab6d5d1a4a1b21b2cdf.tar.xz
grammar: better encapsulation of a grammar and parsing
This makes it possible to use the grammar multiple times and use the multiple instances concurrently. This makes implementing an include statement as part of a grammar possible.
Diffstat (limited to 'src/arch/isa_parser.py')
-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 97b1bcecc..95bbd15e4 100755
--- a/src/arch/isa_parser.py
+++ b/src/arch/isa_parser.py
@@ -1957,7 +1957,7 @@ StaticInstPtr
# Parse it.
(isa_name, namespace, global_code, namespace_code) = \
- self.parse(isa_desc)
+ self.parse_string(isa_desc)
# grab the last three path components of isa_desc_file to put in
# the output