faults.cc (13396:23277eaae855) faults.cc (13895:5762b3dc79c6)
1/*
2 * Copyright (c) 2010, 2012-2014, 2016-2018 ARM Limited
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

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

744{
745 if (FullSystem) {
746 ArmFault::invoke(tc, inst);
747 return;
748 }
749
750 // If the mnemonic isn't defined this has to be an unknown instruction.
751 assert(unknown || mnemonic != NULL);
1/*
2 * Copyright (c) 2010, 2012-2014, 2016-2018 ARM Limited
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

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

744{
745 if (FullSystem) {
746 ArmFault::invoke(tc, inst);
747 return;
748 }
749
750 // If the mnemonic isn't defined this has to be an unknown instruction.
751 assert(unknown || mnemonic != NULL);
752 auto arm_inst = static_cast<ArmStaticInst *>(inst.get());
752 if (disabled) {
753 panic("Attempted to execute disabled instruction "
753 if (disabled) {
754 panic("Attempted to execute disabled instruction "
754 "'%s' (inst 0x%08x)", mnemonic, machInst);
755 "'%s' (inst 0x%08x)", mnemonic, arm_inst->encoding());
755 } else if (unknown) {
756 panic("Attempted to execute unknown instruction (inst 0x%08x)",
756 } else if (unknown) {
757 panic("Attempted to execute unknown instruction (inst 0x%08x)",
757 machInst);
758 arm_inst->encoding());
758 } else {
759 panic("Attempted to execute unimplemented instruction "
759 } else {
760 panic("Attempted to execute unimplemented instruction "
760 "'%s' (inst 0x%08x)", mnemonic, machInst);
761 "'%s' (inst 0x%08x)", mnemonic, arm_inst->encoding());
761 }
762}
763
764bool
765UndefinedInstruction::routeToHyp(ThreadContext *tc) const
766{
767 bool toHyp;
768

--- 840 unchanged lines hidden ---
762 }
763}
764
765bool
766UndefinedInstruction::routeToHyp(ThreadContext *tc) const
767{
768 bool toHyp;
769

--- 840 unchanged lines hidden ---