Re: [Qemu-devel] [PATCH v2 04/10] target-arm: replace cpsr/xpsr/pstate_read calls

2014-08-04 Thread Peter Maydell
On 10 July 2014 16:50, Alex Bennée wrote: > Use the unified save_state_to_spsr. I've also updated the interrupt > helpers to restore via the restore_state_from_spsr() functions. In the > aarch32 case this also needs to call switch_mode() to do the appropriate > fiddling. > > Signed-off-by: Alex Be

Re: [Qemu-devel] [PATCH v2 04/10] target-arm: replace cpsr/xpsr/pstate_read calls

2014-07-15 Thread Riku Voipio
On Thu, Jul 10, 2014 at 04:50:01PM +0100, Alex Bennée wrote: > Use the unified save_state_to_spsr. I've also updated the interrupt > helpers to restore via the restore_state_from_spsr() functions. In the > aarch32 case this also needs to call switch_mode() to do the appropriate > fiddling. For the

[Qemu-devel] [PATCH v2 04/10] target-arm: replace cpsr/xpsr/pstate_read calls

2014-07-10 Thread Alex Bennée
Use the unified save_state_to_spsr. I've also updated the interrupt helpers to restore via the restore_state_from_spsr() functions. In the aarch32 case this also needs to call switch_mode() to do the appropriate fiddling. Signed-off-by: Alex Bennée -- v2 - include xpsr_read conversions - ch