summaryrefslogtreecommitdiff
path: root/src/arch
diff options
context:
space:
mode:
authorGabe Black <gblack@eecs.umich.edu>2011-03-24 13:55:16 -0400
committerGabe Black <gblack@eecs.umich.edu>2011-03-24 13:55:16 -0400
commit57ed5e77fe8366d680768189f8d3c67f8413879a (patch)
tree1a56d853a0fb93c1c7bfbc6aa9d9d6c41b3d36b9 /src/arch
parent531f54fb510e76b8edb1beb83bcae372df3521f9 (diff)
downloadgem5-57ed5e77fe8366d680768189f8d3c67f8413879a.tar.xz
ISA parser: Set up op_src_decl and op_dest_decl for pc operands.
Diffstat (limited to 'src/arch')
-rwxr-xr-xsrc/arch/isa_parser.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/arch/isa_parser.py b/src/arch/isa_parser.py
index 00bfd33d2..947742354 100755
--- a/src/arch/isa_parser.py
+++ b/src/arch/isa_parser.py
@@ -181,6 +181,12 @@ class Template(object):
operands.concatSomeAttrStrings(is_src, 'op_src_decl')
myDict['op_dest_decl'] = \
operands.concatSomeAttrStrings(is_dest, 'op_dest_decl')
+ if operands.readPC:
+ myDict['op_src_decl'] += \
+ 'TheISA::PCState __parserAutoPCState;\n'
+ if operands.setPC:
+ myDict['op_dest_decl'] += \
+ 'TheISA::PCState __parserAutoPCState;\n'
myDict['op_rd'] = operands.concatAttrStrings('op_rd')
if operands.readPC: