X86: Define a noop ExtMachInst.
This commit is contained in:
parent
d43eb42d00
commit
249549f9c3
1 changed files with 12 additions and 0 deletions
|
@ -74,6 +74,18 @@ namespace X86ISA
|
||||||
|
|
||||||
// Memory accesses can be unaligned
|
// Memory accesses can be unaligned
|
||||||
const bool HasUnalignedMemAcc = true;
|
const bool HasUnalignedMemAcc = true;
|
||||||
|
|
||||||
|
const ExtMachInst NoopMachInst = {
|
||||||
|
0x0, // No legacy prefixes.
|
||||||
|
0x0, // No rex prefix.
|
||||||
|
{ 1, 0x0, 0x0, 0x90 }, // One opcode byte, 0x90.
|
||||||
|
0x0, 0x0, // No modrm or sib.
|
||||||
|
0, 0, // No immediate or displacement.
|
||||||
|
8, 8, 8, // All sizes are 8.
|
||||||
|
0, // Displacement size is 0.
|
||||||
|
SixtyFourBitMode // Behave as if we're in 64 bit
|
||||||
|
// mode (this doesn't actually matter).
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // __ARCH_X86_ISATRAITS_HH__
|
#endif // __ARCH_X86_ISATRAITS_HH__
|
||||||
|
|
Loading…
Reference in a new issue