From 99dfc46ffee6aa93d1162fca789956367182f1de Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Mon, 12 Feb 2018 22:29:24 -0500 Subject: [PATCH] target-arm: Set exception target EL in tlb_fill Set the exception target EL for MMU faults in tlb_fill. Backports commit 863b6589d738d0b4c8b283297b0ff228f3d3fb14 from qemu --- qemu/target-arm/op_helper.c | 1 + 1 file changed, 1 insertion(+) diff --git a/qemu/target-arm/op_helper.c b/qemu/target-arm/op_helper.c index 2bb1de70..58331796 100644 --- a/qemu/target-arm/op_helper.c +++ b/qemu/target-arm/op_helper.c @@ -110,6 +110,7 @@ void tlb_fill(CPUState *cs, target_ulong addr, int is_write, int mmu_idx, } env->exception.syndrome = syn; + env->exception.target_el = exception_target_el(env); env->exception.vaddress = addr; env->exception.fsr = ret; raise_exception(env, exc);