qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v1 02/16] target-arm: A64: Respect SPSEL in ERET


From: Alex Bennée
Subject: Re: [Qemu-devel] [PATCH v1 02/16] target-arm: A64: Respect SPSEL in ERET SP restore
Date: Mon, 02 Jun 2014 10:52:53 +0100
User-agent: mu4e 0.9.9.6pre3; emacs 24.3.91.3

Edgar E. Iglesias writes:

> From: "Edgar E. Iglesias" <address@hidden>
>
> Signed-off-by: Edgar E. Iglesias <address@hidden>
> ---
>  target-arm/op_helper.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/target-arm/op_helper.c b/target-arm/op_helper.c
> index 2e2429a..581dc09 100644
> --- a/target-arm/op_helper.c
> +++ b/target-arm/op_helper.c
> @@ -425,7 +425,7 @@ void HELPER(exception_return)(CPUARMState *env)
>          }
>          env->aarch64 = 1;
>          pstate_write(env, spsr);
> -        env->xregs[31] = env->sp_el[new_el];
> +        aarch64_restore_sp(env, new_el);
>          env->pc = env->elr_el[cur_el];
>      }

It might be worth putting the Aarch64 ARM reference next to the aarch64_
functions to make it easier to find in future.

Reviewed-by: Alex Bennée <address@hidden>

-- 
Alex Bennée



reply via email to

[Prev in Thread] Current Thread [Next in Thread]