diff mbox

[05/14] target-arm: Set exception target EL in tlb_fill

Message ID 1432060414-5195-6-git-send-email-peter.maydell@linaro.org
State New
Headers show

Commit Message

Peter Maydell May 19, 2015, 6:33 p.m. UTC
Set the exception target EL for MMU faults in tlb_fill.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
---
 target-arm/op_helper.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Edgar E. Iglesias May 28, 2015, 5:39 a.m. UTC | #1
On Tue, May 19, 2015 at 07:33:25PM +0100, Peter Maydell wrote:
> 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 | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/target-arm/op_helper.c b/target-arm/op_helper.c
> index cda9767..cbb26c4 100644
> --- a/target-arm/op_helper.c
> +++ b/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);
> -- 
> 1.9.1
>
diff mbox

Patch

diff --git a/target-arm/op_helper.c b/target-arm/op_helper.c
index cda9767..cbb26c4 100644
--- a/target-arm/op_helper.c
+++ b/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);