From: Gabe Black Date: Thu, 24 Mar 2011 17:55:16 +0000 (-0400) Subject: ISA parser: Set up op_src_decl and op_dest_decl for pc operands. X-Git-Tag: stable_2012_02_02~448 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=57ed5e77fe8366d680768189f8d3c67f8413879a;p=gem5.git ISA parser: Set up op_src_decl and op_dest_decl for pc operands. --- 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: