isa_parser.py (6661:9bc3e4611009) isa_parser.py (6691:cd68b6ecd68d)
1# Copyright (c) 2003-2005 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 1451 unchanged lines hidden (view full) ---

1460 return self.buildWriteCode()
1461 return ''
1462
1463 # Return the memory access size *in bits*, suitable for
1464 # forming a type via "uint%d_t". Divide by 8 if you want bytes.
1465 def makeAccSize(self):
1466 return self.size
1467
1# Copyright (c) 2003-2005 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

--- 1451 unchanged lines hidden (view full) ---

1460 return self.buildWriteCode()
1461 return ''
1462
1463 # Return the memory access size *in bits*, suitable for
1464 # forming a type via "uint%d_t". Divide by 8 if you want bytes.
1465 def makeAccSize(self):
1466 return self.size
1467
1468class PCOperand(Operand):
1469 def makeConstructor(self):
1470 return ''
1471
1472 def makeRead(self):
1473 return '%s = xc->readPC();\n' % self.base_name
1474
1475 def makeWrite(self):
1476 return 'xc->setPC(%s);\n' % self.base_name
1477
1468class UPCOperand(Operand):
1469 def makeConstructor(self):
1470 return ''
1471
1472 def makeRead(self):
1473 if self.read_code != None:
1474 return self.buildReadCode('readMicroPC')
1475 return '%s = xc->readMicroPC();\n' % self.base_name

--- 554 unchanged lines hidden ---
1478class UPCOperand(Operand):
1479 def makeConstructor(self):
1480 return ''
1481
1482 def makeRead(self):
1483 if self.read_code != None:
1484 return self.buildReadCode('readMicroPC')
1485 return '%s = xc->readMicroPC();\n' % self.base_name

--- 554 unchanged lines hidden ---