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

2017-01-05 Thread Peter Maydell
On 7 December 2016 at 14:49, 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 v2 5/6] Fix Thumb-1 BE32 execution and disassembly.

2016-12-07 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