changeset 10a0ce0e358c in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=10a0ce0e358c
description:
        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

diffstat:

 src/arch/arm/faults.cc |  2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diffs (12 lines):

diff -r a26a328c20eb -r 10a0ce0e358c src/arch/arm/faults.cc
--- a/src/arch/arm/faults.cc    Tue Aug 02 10:38:02 2016 +0100
+++ b/src/arch/arm/faults.cc    Tue Aug 02 10:38:02 2016 +0100
@@ -439,6 +439,8 @@
         // 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)
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to