I realized that I mistakenly stripped qemu-devel from the discussion;
forwarding to make the workaround and todo visible.

Claudio

---------- Forwarded message ----------
From: Peter Maydell <peter.mayd...@linaro.org>
Date: 20 February 2014 16:18
Subject: Re: AArch64 register SP value always appearing as zero in
"info registers" (kvm control)
To: Claudio Fontana <hw.clau...@gmail.com>


On 20 February 2014 15:13, Claudio Fontana <hw.clau...@gmail.com> wrote:
> I got it to "work for me" by replacing AARCH64_CORE_REG(regs.sp)
> with AARCH64_CORE_REG(sp_el1), since I am at EL1.
>
> I read in kvm_arch_put_registers:
>
>     /* TODO:
>      * SP_EL1
>      * ELR_EL1
>      * SPSR[]
>      * FP state
>      * system registers
>      */
>
> So I think getting the SP at EL1 is not supported yet while running at
> EL1 and using SP_ELx.

Yeah. I guess we assumed regs.sp would be "current SP"...
I'll put it on my todo list to fix.

thanks
-- PMM

Reply via email to