base.isa (7087:fb8d5786ff30) base.isa (7571:405f840c4ae1)
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 The Hewlett-Packard Development Company
4// All rights reserved.
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

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

88 # This converts a list of python bools into
89 # a comma seperated list of C++ bools.
90 def microFlagsText(self, vals):
91 text = ""
92 for val in vals:
93 text += ", %s" % self.cppBool(val)
94 return text
95
1// -*- mode:c++ -*-
2
3// Copyright (c) 2007 The Hewlett-Packard Development Company
4// All rights reserved.
5//
6// The license below extends only to copyright in the software and shall
7// not be construed as granting a license to any other intellectual
8// property including but not limited to intellectual property relating

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

88 # This converts a list of python bools into
89 # a comma seperated list of C++ bools.
90 def microFlagsText(self, vals):
91 text = ""
92 for val in vals:
93 text += ", %s" % self.cppBool(val)
94 return text
95
96 def getAllocator(self, mnemonic, *microFlags):
97 return 'new %s(machInst, %s)' % \
98 (self.className, mnemonic, self.microFlagsText(microFlags))
99
100 def getGeneratorDef(self, micropc):
101 return self.generatorTemplate % \
102 (self.className, micropc, \
103 self.getAllocator(True, True, False, False))
104
105 def getGenerator(self, micropc):
106 return self.generatorNameTemplate % (self.className, micropc)
107}};
96 def getGeneratorDef(self, micropc):
97 return self.generatorTemplate % \
98 (self.className, micropc, \
99 self.getAllocator(True, True, False, False))
100
101 def getGenerator(self, micropc):
102 return self.generatorNameTemplate % (self.className, micropc)
103}};