diff options
Diffstat (limited to 'src/arch/x86/insts/badmicroop.cc')
-rw-r--r-- | src/arch/x86/insts/badmicroop.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/arch/x86/insts/badmicroop.cc b/src/arch/x86/insts/badmicroop.cc index 21af1281b..09248738d 100644 --- a/src/arch/x86/insts/badmicroop.cc +++ b/src/arch/x86/insts/badmicroop.cc @@ -42,14 +42,21 @@ #include "arch/x86/generated/decoder.hh" #include "arch/x86/isa_traits.hh" +namespace { + +static X86ISA::ExtMachInst dummyMachInst; + +} + namespace X86ISA { // This microop needs to be allocated on the heap even though it could // theoretically be statically allocated. The reference counted pointer would // try to delete the static memory when it was destructed. + const StaticInstPtr badMicroop = - new X86ISAInst::MicroPanic(NoopMachInst, "BAD", + new X86ISAInst::MicroPanic(dummyMachInst, "BAD", StaticInst::IsMicroop | StaticInst::IsLastMicroop, "Invalid microop!", 0); |