faults.cc (11576:9ff589e30935) faults.cc (11578:10a0ce0e358c)
1/*
2 * Copyright (c) 2010, 2012-2014, 2016 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

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

434 fromMode = (OperatingMode) (uint8_t) cpsr.mode;
435 fromEL = opModeToEL(fromMode);
436 if (opModeIs64(fromMode))
437 from64 = true;
438
439 // Determine target exception level
440 if (ArmSystem::haveSecurity(tc) && routeToMonitor(tc))
441 toEL = EL3;
1/*
2 * Copyright (c) 2010, 2012-2014, 2016 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

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

434 fromMode = (OperatingMode) (uint8_t) cpsr.mode;
435 fromEL = opModeToEL(fromMode);
436 if (opModeIs64(fromMode))
437 from64 = true;
438
439 // Determine target exception level
440 if (ArmSystem::haveSecurity(tc) && routeToMonitor(tc))
441 toEL = EL3;
442 else if (ArmSystem::haveVirtualization(tc) && routeToHyp(tc))
443 toEL = EL2;
442 else
443 toEL = opModeToEL(nextMode());
444 if (fromEL > toEL)
445 toEL = fromEL;
446
447 if (toEL == ArmSystem::highestEL(tc) || ELIs64(tc, toEL)) {
448 // Invoke exception handler in AArch64 state
449 to64 = true;

--- 995 unchanged lines hidden ---
444 else
445 toEL = opModeToEL(nextMode());
446 if (fromEL > toEL)
447 toEL = fromEL;
448
449 if (toEL == ArmSystem::highestEL(tc) || ELIs64(tc, toEL)) {
450 // Invoke exception handler in AArch64 state
451 to64 = true;

--- 995 unchanged lines hidden ---