isa_parser.py (10326:43516d8eabe9) | isa_parser.py (10416:dd64a2984966) |
---|---|
1# Copyright (c) 2014 ARM Limited 2# All rights reserved 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 842 unchanged lines hidden (view full) --- 851 else: 852 # The whole PC state itself. 853 return 'xc->pcState(%s);\n' % self.base_name 854 855 def makeDecl(self): 856 ctype = 'TheISA::PCState' 857 if self.isPCPart(): 858 ctype = self.ctype | 1# Copyright (c) 2014 ARM Limited 2# All rights reserved 3# 4# The license below extends only to copyright in the software and shall 5# not be construed as granting a license to any other intellectual 6# property including but not limited to intellectual property relating 7# to a hardware implementation of the functionality of the software 8# licensed hereunder. You may use the software subject to the license --- 842 unchanged lines hidden (view full) --- 851 else: 852 # The whole PC state itself. 853 return 'xc->pcState(%s);\n' % self.base_name 854 855 def makeDecl(self): 856 ctype = 'TheISA::PCState' 857 if self.isPCPart(): 858 ctype = self.ctype |
859 return "%s %s;\n" % (ctype, self.base_name) | 859 # Note that initializations in the declarations are solely 860 # to avoid 'uninitialized variable' errors from the compiler. 861 return '%s %s = 0;\n' % (ctype, self.base_name) |
860 861 def isPCState(self): 862 return 1 863 864class OperandList(object): 865 '''Find all the operands in the given code block. Returns an operand 866 descriptor list (instance of class OperandList).''' 867 def __init__(self, parser, code): --- 1540 unchanged lines hidden --- | 862 863 def isPCState(self): 864 return 1 865 866class OperandList(object): 867 '''Find all the operands in the given code block. Returns an operand 868 descriptor list (instance of class OperandList).''' 869 def __init__(self, parser, code): --- 1540 unchanged lines hidden --- |