microasm.isa (5906:fe94a5f1f229) | microasm.isa (5930:ec124ac0984b) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 4// All rights reserved. 5// 6// Redistribution and use of this software in source and binary forms, 7// with or without modification, are permitted provided that the 8// following conditions are met: --- 159 unchanged lines hidden (view full) --- 168 169 # Code literal which forces a default 64 bit operand size in 64 bit mode. 170 assembler.symbols["oszIn64Override"] = ''' 171 if (machInst.mode.submode == SixtyFourBitMode && 172 env.dataSize == 4) 173 env.dataSize = 8; 174 ''' 175 | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2007-2008 The Hewlett-Packard Development Company 4// All rights reserved. 5// 6// Redistribution and use of this software in source and binary forms, 7// with or without modification, are permitted provided that the 8// following conditions are met: --- 159 unchanged lines hidden (view full) --- 168 169 # Code literal which forces a default 64 bit operand size in 64 bit mode. 170 assembler.symbols["oszIn64Override"] = ''' 171 if (machInst.mode.submode == SixtyFourBitMode && 172 env.dataSize == 4) 173 env.dataSize = 8; 174 ''' 175 |
176 assembler.symbols["oszForPseudoDesc"] = ''' | 176 assembler.symbols["maxOsz"] = ''' |
177 if (machInst.mode.submode == SixtyFourBitMode) 178 env.dataSize = 8; 179 else 180 env.dataSize = 4; 181 ''' 182 183 def trimImm(width): 184 return "adjustedImm = adjustedImm & mask(%s);" % width --- 28 unchanged lines hidden --- | 177 if (machInst.mode.submode == SixtyFourBitMode) 178 env.dataSize = 8; 179 else 180 env.dataSize = 4; 181 ''' 182 183 def trimImm(width): 184 return "adjustedImm = adjustedImm & mask(%s);" % width --- 28 unchanged lines hidden --- |