Re: [Qemu-devel] [PATCH 05/10] armv7m: honour CCR.STACKALIGN on exception entry

2017-01-24 Thread Peter Maydell
On 24 January 2017 at 19:33, Richard Henderson wrote: > On 01/24/2017 11:16 AM, Peter Maydell wrote: >> The CCR.STACKALIGN bit controls whether the CPU is supposed to force >> 8-alignment of the stack pointer on entry to the exception handler. > > 8... > >> +/* Align stack pointer if the guest

Re: [Qemu-devel] [PATCH 05/10] armv7m: honour CCR.STACKALIGN on exception entry

2017-01-24 Thread Richard Henderson
On 01/24/2017 11:16 AM, Peter Maydell wrote: > The CCR.STACKALIGN bit controls whether the CPU is supposed to force > 8-alignment of the stack pointer on entry to the exception handler. 8... > +/* Align stack pointer if the guest wants that */ > +if ((env->regs[13] & 4) && (env->v7m.ccr &

[Qemu-devel] [PATCH 05/10] armv7m: honour CCR.STACKALIGN on exception entry

2017-01-24 Thread Peter Maydell
From: Michael Davidsaver The CCR.STACKALIGN bit controls whether the CPU is supposed to force 8-alignment of the stack pointer on entry to the exception handler. Signed-off-by: Michael Davidsaver [PMM: commit message and comment tweaks] Signed-off-by: Peter Maydell --- target/arm/helper.c | 6