microasm.isa (6618:2cd3ce4fa03f) microasm.isa (6799:36131e4dfb6e)
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:

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

176 assembler.symbols["CTrue"] = "ConditionTests::True"
177 assembler.symbols["CFalse"] = "ConditionTests::False"
178
179 for reg in ('sysenter_cs', 'sysenter_esp', 'sysenter_eip',
180 'star', 'lstar', 'cstar', 'sf_mask',
181 'kernel_gs_base'):
182 assembler.symbols[reg] = regIdx("MISCREG_%s" % reg.upper())
183
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:

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

176 assembler.symbols["CTrue"] = "ConditionTests::True"
177 assembler.symbols["CFalse"] = "ConditionTests::False"
178
179 for reg in ('sysenter_cs', 'sysenter_esp', 'sysenter_eip',
180 'star', 'lstar', 'cstar', 'sf_mask',
181 'kernel_gs_base'):
182 assembler.symbols[reg] = regIdx("MISCREG_%s" % reg.upper())
183
184 for flag in ('Scalar',):
185 assembler.symbols[flag] = 'Media%sOp' % flag
186
184 # Code literal which forces a default 64 bit operand size in 64 bit mode.
185 assembler.symbols["oszIn64Override"] = '''
186 if (machInst.mode.submode == SixtyFourBitMode &&
187 env.dataSize == 4)
188 env.dataSize = 8;
189 '''
190
191 assembler.symbols["maxOsz"] = '''

--- 38 unchanged lines hidden ---
187 # Code literal which forces a default 64 bit operand size in 64 bit mode.
188 assembler.symbols["oszIn64Override"] = '''
189 if (machInst.mode.submode == SixtyFourBitMode &&
190 env.dataSize == 4)
191 env.dataSize = 8;
192 '''
193
194 assembler.symbols["maxOsz"] = '''

--- 38 unchanged lines hidden ---