target-arm: Set exception target EL in tlb_fill
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 29 May 2015 10:28:51 +0000 (11:28 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 29 May 2015 10:28:51 +0000 (11:28 +0100)
Set the exception target EL for MMU faults in tlb_fill.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
target-arm/op_helper.c

index c9f5821c6036f3acd86337484559d7f5ebdfbceb..9ab7c619e6e915a0a6de8cf1458f242adea77b75 100644 (file)
@@ -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);