ISA parser: Set up op_src_decl and op_dest_decl for pc operands.
This commit is contained in:
parent
531f54fb51
commit
57ed5e77fe
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue