microasm.isa (9471:4193ed60eed7) | microasm.isa (12390:464513ab8668) |
---|---|
1// -*- mode:c++ -*- 2 3// Copyright (c) 2007-2008 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 --- 166 unchanged lines hidden (view full) --- 175 176 assembler.symbols["maxOsz"] = ''' 177 if (machInst.mode.submode == SixtyFourBitMode) 178 env.dataSize = 8; 179 else 180 env.dataSize = 4; 181 ''' 182 | 1// -*- mode:c++ -*- 2 3// Copyright (c) 2007-2008 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 --- 166 unchanged lines hidden (view full) --- 175 176 assembler.symbols["maxOsz"] = ''' 177 if (machInst.mode.submode == SixtyFourBitMode) 178 env.dataSize = 8; 179 else 180 env.dataSize = 4; 181 ''' 182 |
183 assembler.symbols["clampOsz"] = ''' 184 if (env.dataSize == 2) 185 env.dataSize = 4; 186 ''' 187 |
|
183 def trimImm(width): 184 return "adjustedImm = adjustedImm & mask(%s);" % width 185 186 assembler.symbols["trimImm"] = trimImm 187 188 def labeler(labelStr): 189 return "label_%s" % labelStr 190 --- 31 unchanged lines hidden --- | 188 def trimImm(width): 189 return "adjustedImm = adjustedImm & mask(%s);" % width 190 191 assembler.symbols["trimImm"] = trimImm 192 193 def labeler(labelStr): 194 return "label_%s" % labelStr 195 --- 31 unchanged lines hidden --- |