limmop.isa (4804:4a707cb7065b) | limmop.isa (5188:974af6059943) |
---|---|
1// Copyright (c) 2007 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 --- 134 unchanged lines hidden (view full) --- 143}}; 144 145let {{ 146 class LimmOp(X86Microop): 147 def __init__(self, dest, imm, dataSize="env.dataSize"): 148 self.className = "Limm" 149 self.mnemonic = "limm" 150 self.dest = dest | 1// Copyright (c) 2007 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 --- 134 unchanged lines hidden (view full) --- 143}}; 144 145let {{ 146 class LimmOp(X86Microop): 147 def __init__(self, dest, imm, dataSize="env.dataSize"): 148 self.className = "Limm" 149 self.mnemonic = "limm" 150 self.dest = dest |
151 if isinstance(imm, (int, long)): 152 imm = "ULL(%d)" % imm |
|
151 self.imm = imm 152 self.dataSize = dataSize 153 154 def getAllocator(self, *microFlags): 155 allocator = '''new %(class_name)s(machInst, mnemonic 156 %(flags)s, %(dest)s, %(imm)s, %(dataSize)s)''' % { 157 "class_name" : self.className, 158 "mnemonic" : self.mnemonic, --- 17 unchanged lines hidden --- | 153 self.imm = imm 154 self.dataSize = dataSize 155 156 def getAllocator(self, *microFlags): 157 allocator = '''new %(class_name)s(machInst, mnemonic 158 %(flags)s, %(dest)s, %(imm)s, %(dataSize)s)''' % { 159 "class_name" : self.className, 160 "mnemonic" : self.mnemonic, --- 17 unchanged lines hidden --- |