badmicroop.cc (11793:ef606668d247) | badmicroop.cc (12407:c24d0c2d816d) |
---|---|
1/* 2 * Copyright (c) 2011 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 28 unchanged lines hidden (view full) --- 37 * Authors: Gabe Black 38 */ 39 40#include "arch/x86/insts/badmicroop.hh" 41 42#include "arch/x86/generated/decoder.hh" 43#include "arch/x86/isa_traits.hh" 44 | 1/* 2 * Copyright (c) 2011 Advanced Micro Devices, Inc. 3 * All rights reserved. 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software --- 28 unchanged lines hidden (view full) --- 37 * Authors: Gabe Black 38 */ 39 40#include "arch/x86/insts/badmicroop.hh" 41 42#include "arch/x86/generated/decoder.hh" 43#include "arch/x86/isa_traits.hh" 44 |
45namespace { 46 47static X86ISA::ExtMachInst dummyMachInst; 48 49} 50 |
|
45namespace X86ISA 46{ 47 48// This microop needs to be allocated on the heap even though it could 49// theoretically be statically allocated. The reference counted pointer would 50// try to delete the static memory when it was destructed. | 51namespace X86ISA 52{ 53 54// This microop needs to be allocated on the heap even though it could 55// theoretically be statically allocated. The reference counted pointer would 56// try to delete the static memory when it was destructed. |
57 |
|
51const StaticInstPtr badMicroop = | 58const StaticInstPtr badMicroop = |
52 new X86ISAInst::MicroPanic(NoopMachInst, "BAD", | 59 new X86ISAInst::MicroPanic(dummyMachInst, "BAD", |
53 StaticInst::IsMicroop | StaticInst::IsLastMicroop, 54 "Invalid microop!", 0); 55 56} // namespace X86ISA | 60 StaticInst::IsMicroop | StaticInst::IsLastMicroop, 61 "Invalid microop!", 0); 62 63} // namespace X86ISA |