Deleted Added
sdiff udiff text old ( 6329:5d8b91875859 ) new ( 6437:ecebd7cccb06 )
full compact
1/*
2 * Copyright (c) 2007 The Hewlett-Packard Development Company
3 * All rights reserved.
4 *
5 * Redistribution and use of this software in source and binary forms,
6 * with or without modification, are permitted provided that the
7 * following conditions are met:
8 *

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

170 uint64_t displacement;
171
172 //The effective operand size.
173 uint8_t opSize;
174 //The effective address size.
175 uint8_t addrSize;
176 //The effective stack size.
177 uint8_t stackSize;
178
179 //Mode information
180 OperatingMode mode;
181 };
182
183 inline static std::ostream &
184 operator << (std::ostream & os, const ExtMachInst & emi)
185 {
186 ccprintf(os, "\n{\n\tleg = %#x,\n\trex = %#x,\n\t"
187 "op = {\n\t\tnum = %d,\n\t\top = %#x,\n\t\t"
188 "prefixA = %#x,\n\t\tprefixB = %#x\n\t},\n\t"
189 "modRM = %#x,\n\tsib = %#x,\n\t"
190 "immediate = %#x,\n\tdisplacement = %#x\n}\n",
191 (uint8_t)emi.legacy, (uint8_t)emi.rex,
192 emi.opcode.num, (uint8_t)emi.opcode.op,
193 emi.opcode.prefixA, emi.opcode.prefixB,
194 (uint8_t)emi.modRM, (uint8_t)emi.sib,
195 emi.immediate, emi.displacement);
196 return os;
197 }
198
199 inline static bool
200 operator == (const ExtMachInst &emi1, const ExtMachInst &emi2)
201 {
202 if(emi1.legacy != emi2.legacy)
203 return false;

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

222 if(emi1.mode != emi2.mode)
223 return false;
224 if(emi1.opSize != emi2.opSize)
225 return false;
226 if(emi1.addrSize != emi2.addrSize)
227 return false;
228 if(emi1.stackSize != emi2.stackSize)
229 return false;
230 return true;
231 }
232
233 struct CoreSpecific {
234 int core_type;
235 };
236};
237
238#endif // __ARCH_X86_TYPES_HH__