Deleted Added
sdiff udiff text old ( 12407:c24d0c2d816d ) new ( 14277:73d5e60b3a7c )
full compact
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

--- 25 unchanged lines hidden (view full) ---

34 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
35 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
36 *
37 * Authors: Gabe Black
38 */
39
40#include "arch/x86/insts/badmicroop.hh"
41
42#include "arch/generic/debugfaults.hh"
43#include "arch/x86/generated/decoder.hh"
44#include "arch/x86/isa_traits.hh"
45
46namespace {
47
48static X86ISA::ExtMachInst dummyMachInst;
49
50}
51
52namespace X86ISA
53{
54
55// This microop needs to be allocated on the heap even though it could
56// theoretically be statically allocated. The reference counted pointer would
57// try to delete the static memory when it was destructed.
58
59const StaticInstPtr badMicroop =
60 new X86ISAInst::MicroDebug(dummyMachInst, "panic", "BAD",
61 StaticInst::IsMicroop | StaticInst::IsLastMicroop,
62 new GenericISA::M5PanicFault("Invalid microop!"));
63
64} // namespace X86ISA