Re: [Qemu-devel] [PATCH v1 16/17] loader: Add data swap option to load-elf

2016-02-28 Thread Peter Crosthwaite
On Sun, Feb 28, 2016 at 7:28 AM, Peter Maydell wrote: > On 27 February 2016 at 23:14, Peter Crosthwaite > wrote: >> On Tue, Jan 19, 2016 at 9:53 AM, Peter Maydell >> wrote: >>> Can we have a doc comment so we have something that defines what >>> values data_swab accepts? (it's not just a bool).

Re: [Qemu-devel] [PATCH v1 16/17] loader: Add data swap option to load-elf

2016-02-28 Thread Peter Maydell
On 27 February 2016 at 23:14, Peter Crosthwaite wrote: > On Tue, Jan 19, 2016 at 9:53 AM, Peter Maydell > wrote: >> Can we have a doc comment so we have something that defines what >> values data_swab accepts? (it's not just a bool). >> > > This is difficult to capture without writing to whole d

Re: [Qemu-devel] [PATCH v1 16/17] loader: Add data swap option to load-elf

2016-02-27 Thread Peter Crosthwaite
On Tue, Jan 19, 2016 at 9:53 AM, Peter Maydell wrote: > On 18 January 2016 at 07:12, Peter Crosthwaite > wrote: >> Some CPUs are of an opposite data-endianness to other components in the >> system. Sometimes elfs have the data sections layed out with this CPU >> data-endianess accounting for when

Re: [Qemu-devel] [PATCH v1 16/17] loader: Add data swap option to load-elf

2016-01-19 Thread Peter Maydell
On 18 January 2016 at 07:12, Peter Crosthwaite wrote: > Some CPUs are of an opposite data-endianness to other components in the > system. Sometimes elfs have the data sections layed out with this CPU > data-endianess accounting for when loaded via the CPU, byte swaps > (relative to other system co

[Qemu-devel] [PATCH v1 16/17] loader: Add data swap option to load-elf

2016-01-17 Thread Peter Crosthwaite
Some CPUs are of an opposite data-endianness to other components in the system. Sometimes elfs have the data sections layed out with this CPU data-endianess accounting for when loaded via the CPU, byte swaps (relative to other system components) will occur. The leading example, is ARM's BE32 mode,