debug.isa (5591:b05a5c5452e0) | debug.isa (5788:6d4161a36ca1) |
---|---|
1// Copyright (c) 2008 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// Redistribution and use of this software in source and binary forms, 5// with or without modification, are permitted provided that the 6// following conditions are met: 7// 8// The software must be used only for Non-Commercial Use which means any --- 169 unchanged lines hidden (view full) --- 178 if not isinstance(flags, (list, tuple)): 179 raise Exception, "flags must be a list or tuple of flags" 180 self.cond = " | ".join(flags) 181 self.className += "Flags" 182 else: 183 self.cond = "0" 184 185 def getAllocator(self, *microFlags): | 1// Copyright (c) 2008 The Hewlett-Packard Development Company 2// All rights reserved. 3// 4// Redistribution and use of this software in source and binary forms, 5// with or without modification, are permitted provided that the 6// following conditions are met: 7// 8// The software must be used only for Non-Commercial Use which means any --- 169 unchanged lines hidden (view full) --- 178 if not isinstance(flags, (list, tuple)): 179 raise Exception, "flags must be a list or tuple of flags" 180 self.cond = " | ".join(flags) 181 self.className += "Flags" 182 else: 183 self.cond = "0" 184 185 def getAllocator(self, *microFlags): |
186 allocator = '''new %(class_name)s(machInst, mnemonic | 186 allocator = '''new %(class_name)s(machInst, macrocodeBlock |
187 %(flags)s, "%(message)s", %(cc)s)''' % { 188 "class_name" : self.className, 189 "flags" : self.microFlagsText(microFlags), 190 "message" : self.message, 191 "cc" : self.cond} 192 return allocator 193 194 exec_output = "" --- 35 unchanged lines hidden --- | 187 %(flags)s, "%(message)s", %(cc)s)''' % { 188 "class_name" : self.className, 189 "flags" : self.microFlagsText(microFlags), 190 "message" : self.message, 191 "cc" : self.cond} 192 return allocator 193 194 exec_output = "" --- 35 unchanged lines hidden --- |