From 57ed5e77fe8366d680768189f8d3c67f8413879a Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 24 Mar 2011 13:55:16 -0400 Subject: [PATCH] ISA parser: Set up op_src_decl and op_dest_decl for pc operands. --- src/arch/isa_parser.py | 6 ++++++ 1 file changed, 6 insertions(+) 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: -- 2.30.2