From: Gabe Black Date: Mon, 23 Aug 2010 16:44:19 +0000 (-0700) Subject: X86: Define a noop ExtMachInst. X-Git-Tag: stable_2012_02_02~872 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=249549f9c3cc9317b1eeca8e844287dbbaf5f4ca;p=gem5.git X86: Define a noop ExtMachInst. --- diff --git a/src/arch/x86/isa_traits.hh b/src/arch/x86/isa_traits.hh index c1036ac01..f67b58788 100644 --- a/src/arch/x86/isa_traits.hh +++ b/src/arch/x86/isa_traits.hh @@ -74,6 +74,18 @@ namespace X86ISA // Memory accesses can be unaligned 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__