Re: [Qemu-devel] [PATCH v4 3/4] target-arm: Add 32/64-bit register sync

2015-02-10 Thread Peter Maydell
On 11 February 2015 at 06:08, Greg Bellows wrote: > > > On Tue, Feb 10, 2015 at 10:13 PM, Peter Maydell > wrote: >> >> On 10 February 2015 at 10:50, Greg Bellows >> wrote: >> > +void aarch64_sync_64_to_32(CPUARMState *env) >> > +{ >> > +int i; >> > + >> > +for (i = 0; i < 15; i++) { >> >

Re: [Qemu-devel] [PATCH v4 3/4] target-arm: Add 32/64-bit register sync

2015-02-10 Thread Greg Bellows
On Tue, Feb 10, 2015 at 10:13 PM, Peter Maydell wrote: > On 10 February 2015 at 10:50, Greg Bellows > wrote: > > Add AArch32 to AArch64 register sychronization functions. > > Replace manual register synchronization with new functions in > > aarch64_cpu_do_interrupt() and HELPER(exception_return)

Re: [Qemu-devel] [PATCH v4 3/4] target-arm: Add 32/64-bit register sync

2015-02-10 Thread Peter Maydell
On 10 February 2015 at 10:50, Greg Bellows wrote: > Add AArch32 to AArch64 register sychronization functions. > Replace manual register synchronization with new functions in > aarch64_cpu_do_interrupt() and HELPER(exception_return)(). > > Signed-off-by: Greg Bellows > > --- > > v3 -> v4 > - Rewor

[Qemu-devel] [PATCH v4 3/4] target-arm: Add 32/64-bit register sync

2015-02-10 Thread Greg Bellows
Add AArch32 to AArch64 register sychronization functions. Replace manual register synchronization with new functions in aarch64_cpu_do_interrupt() and HELPER(exception_return)(). Signed-off-by: Greg Bellows --- v3 -> v4 - Rework sync routines to cover various exception levels - Move sync routin