badmicroop.cc (8332:23711432221f) | badmicroop.cc (8961:ff4762285f99) |
---|---|
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 --- 23 unchanged lines hidden (view full) --- 32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 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 | 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 --- 23 unchanged lines hidden (view full) --- 32 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 33 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 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/generated/decoder.hh" |
|
40#include "arch/x86/insts/badmicroop.hh" | 41#include "arch/x86/insts/badmicroop.hh" |
41#include "arch/x86/decoder.hh" | |
42#include "arch/x86/isa_traits.hh" 43 44namespace X86ISA 45{ 46 47// This microop needs to be allocated on the heap even though it could 48// theoretically be statically allocated. The reference counted pointer would 49// try to delete the static memory when it was destructed. 50const StaticInstPtr badMicroop = 51 new X86ISAInst::MicroPanic(NoopMachInst, "BAD", 52 StaticInst::IsMicroop | StaticInst::IsLastMicroop, 53 "Invalid microop!", 0); 54 55} // namespace X86ISA | 42#include "arch/x86/isa_traits.hh" 43 44namespace X86ISA 45{ 46 47// This microop needs to be allocated on the heap even though it could 48// theoretically be statically allocated. The reference counted pointer would 49// try to delete the static memory when it was destructed. 50const StaticInstPtr badMicroop = 51 new X86ISAInst::MicroPanic(NoopMachInst, "BAD", 52 StaticInst::IsMicroop | StaticInst::IsLastMicroop, 53 "Invalid microop!", 0); 54 55} // namespace X86ISA |