Re: [Qemu-devel] [PATCH 2/5] Fix Thumb-1 BE32 execution and disassembly.

2016-12-06 Thread Julian Brown
On Fri, 4 Nov 2016 14:04:24 + Julian Brown wrote: > On Fri, 4 Nov 2016 13:30:12 + > Peter Maydell wrote: > > > On 3 November 2016 at 17:30, Julian Brown > > wrote: > > > Thumb-1 code has some issues in BE32 mode (as currently > > > implemented). In short, since bytes are swapped with

Re: [Qemu-devel] [PATCH 2/5] Fix Thumb-1 BE32 execution and disassembly.

2016-11-04 Thread Julian Brown
On Fri, 4 Nov 2016 13:30:12 + Peter Maydell wrote: > On 3 November 2016 at 17:30, Julian Brown > wrote: > > Thumb-1 code has some issues in BE32 mode (as currently > > implemented). In short, since bytes are swapped within words at > > load time for BE32 executables, this also swaps pairs of

Re: [Qemu-devel] [PATCH 2/5] Fix Thumb-1 BE32 execution and disassembly.

2016-11-04 Thread Peter Maydell
On 3 November 2016 at 17:30, Julian Brown wrote: > Thumb-1 code has some issues in BE32 mode (as currently implemented). In > short, since bytes are swapped within words at load time for BE32 > executables, this also swaps pairs of adjacent Thumb-1 instructions. > > This patch un-swaps those pairs

[Qemu-devel] [PATCH 2/5] Fix Thumb-1 BE32 execution and disassembly.

2016-11-03 Thread Julian Brown
Thumb-1 code has some issues in BE32 mode (as currently implemented). In short, since bytes are swapped within words at load time for BE32 executables, this also swaps pairs of adjacent Thumb-1 instructions. This patch un-swaps those pairs of instructions again, both for execution, and for disasse