arm: Add check to fault routing for hypervisor/virtualization
This patch adds the option for faults to be routed to the hypervisor using the pre-existing routeToHyp() functions that are present in each fault type. Change-Id: I9735512c094457636b9870456a5be5432288e004
This commit is contained in:
parent
fc6879097b
commit
f9a6f68e0b
1 changed files with 2 additions and 0 deletions
|
@ -439,6 +439,8 @@ ArmFault::invoke(ThreadContext *tc, const StaticInstPtr &inst)
|
|||
// Determine target exception level
|
||||
if (ArmSystem::haveSecurity(tc) && routeToMonitor(tc))
|
||||
toEL = EL3;
|
||||
else if (ArmSystem::haveVirtualization(tc) && routeToHyp(tc))
|
||||
toEL = EL2;
|
||||
else
|
||||
toEL = opModeToEL(nextMode());
|
||||
if (fromEL > toEL)
|
||||
|
|
Loading…
Reference in a new issue