diff options
author | Gabe Black <gblack@eecs.umich.edu> | 2012-06-04 10:57:23 -0700 |
---|---|---|
committer | Gabe Black <gblack@eecs.umich.edu> | 2012-06-04 10:57:23 -0700 |
commit | 008b17d8161ef1d880347bfbbe49336a1446e56e (patch) | |
tree | 7b3a159ed5369ae1bfc1c8fedb970e426a77e0c9 /src/arch/x86/isa_traits.hh | |
parent | 6437f3f4ee5275f59a4472d95e0abac1a8b82e22 (diff) | |
download | gem5-008b17d8161ef1d880347bfbbe49336a1446e56e.tar.xz |
ISA: Turn the ExtMachInst NoopMachinst into the StaticInstPtr NoopStaticInst.
This eliminates a use of the ExtMachInst type outside of the ISAs.
Diffstat (limited to 'src/arch/x86/isa_traits.hh')
-rw-r--r-- | src/arch/x86/isa_traits.hh | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/arch/x86/isa_traits.hh b/src/arch/x86/isa_traits.hh index 383e56eee..338ea4f4d 100644 --- a/src/arch/x86/isa_traits.hh +++ b/src/arch/x86/isa_traits.hh @@ -43,6 +43,7 @@ #include "arch/x86/types.hh" #include "arch/x86/x86_traits.hh" #include "base/types.hh" +#include "cpu/static_inst_fwd.hh" namespace LittleEndianGuest {} @@ -71,17 +72,7 @@ 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). - }; + extern const StaticInstPtr NoopStaticInst; } #endif // __ARCH_X86_ISATRAITS_HH__ |