faults.cc (7585:afbc40280b56) faults.cc (7640:5286a8a469c5)
1/*
2 * Copyright (c) 2010 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

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

154 ArmFault::invoke(tc);
155}
156
157#else
158
159void
160UndefinedInstruction::invoke(ThreadContext *tc)
161{
1/*
2 * Copyright (c) 2010 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

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

154 ArmFault::invoke(tc);
155}
156
157#else
158
159void
160UndefinedInstruction::invoke(ThreadContext *tc)
161{
162 // If the mnemonic isn't defined this has to be an unknown instruction.
162 assert(unknown || mnemonic != NULL);
163 assert(unknown || mnemonic != NULL);
163 if (unknown) {
164 if (disabled) {
165 panic("Attempted to execute disabled instruction "
166 "'%s' (inst 0x%08x)", mnemonic, machInst);
167 } else if (unknown) {
164 panic("Attempted to execute unknown instruction (inst 0x%08x)",
165 machInst);
166 } else {
167 panic("Attempted to execute unimplemented instruction "
168 "'%s' (inst 0x%08x)", mnemonic, machInst);
169 }
170}
171

--- 49 unchanged lines hidden ---
168 panic("Attempted to execute unknown instruction (inst 0x%08x)",
169 machInst);
170 } else {
171 panic("Attempted to execute unimplemented instruction "
172 "'%s' (inst 0x%08x)", mnemonic, machInst);
173 }
174}
175

--- 49 unchanged lines hidden ---