isa_parser.py (4731:7495af50d714) | isa_parser.py (4950:f5f19784acf1) |
---|---|
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 --- 1450 unchanged lines hidden (view full) --- 1459 def makeWrite(self): 1460 return '' 1461 1462 # Return the memory access size *in bits*, suitable for 1463 # forming a type via "uint%d_t". Divide by 8 if you want bytes. 1464 def makeAccSize(self): 1465 return self.size 1466 | 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 --- 1450 unchanged lines hidden (view full) --- 1459 def makeWrite(self): 1460 return '' 1461 1462 # Return the memory access size *in bits*, suitable for 1463 # forming a type via "uint%d_t". Divide by 8 if you want bytes. 1464 def makeAccSize(self): 1465 return self.size 1466 |
1467class UPCOperand(Operand): 1468 def makeConstructor(self): 1469 return '' |
|
1467 | 1470 |
1471 def makeRead(self): 1472 return '%s = xc->readMicroPC();\n' % self.base_name 1473 1474 def makeWrite(self): 1475 return 'xc->setMicroPC(%s);\n' % self.base_name 1476 1477class NUPCOperand(Operand): 1478 def makeConstructor(self): 1479 return '' 1480 1481 def makeRead(self): 1482 return '%s = xc->readNextMicroPC();\n' % self.base_name 1483 1484 def makeWrite(self): 1485 return 'xc->setNextMicroPC(%s);\n' % self.base_name 1486 |
|
1468class NPCOperand(Operand): 1469 def makeConstructor(self): 1470 return '' 1471 1472 def makeRead(self): 1473 return '%s = xc->readNextPC();\n' % self.base_name 1474 1475 def makeWrite(self): --- 471 unchanged lines hidden --- | 1487class NPCOperand(Operand): 1488 def makeConstructor(self): 1489 return '' 1490 1491 def makeRead(self): 1492 return '%s = xc->readNextPC();\n' % self.base_name 1493 1494 def makeWrite(self): --- 471 unchanged lines hidden --- |