On 29 December 2013 06:32, Christoffer Dall <christoffer.dall@xxxxxxxxxx> wrote: > On Fri, Dec 13, 2013 at 11:58:06AM +0100, Andrew Jones wrote: >> + msr cpsr_c, #(UND_MODE | PSR_I_BIT | PSR_F_BIT) >> + add r4, #S_FRAME_SIZE >> + mov sp, r4 >> + msr cpsr_c, #(ABT_MODE | PSR_I_BIT | PSR_F_BIT) >> + add r4, #S_FRAME_SIZE >> + mov sp, r4 >> + msr cpsr_c, #(IRQ_MODE | PSR_I_BIT | PSR_F_BIT) >> + add r4, #S_FRAME_SIZE >> + mov sp, r4 >> + msr cpsr_c, #(FIQ_MODE | PSR_I_BIT | PSR_F_BIT) >> + add r4, #S_FRAME_SIZE >> + mov sp, r4 >> + msr cpsr_cxsf, r3 @ back to svc mode >> + mov pc, lr >> + > > I would have loved to use the 'msr SP_<mode>, rX' and related > instructions for this, but QEMU doesn't seem to support this yet, so it > makes sense. QEMU doesn't implement those because they are present in ARMv7VE (ie v7 + virtualization extensions) only, and we don't emulate the virt extensions. thanks -- PMM -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html