Re: [Qemu-devel] [PATCH v2 02/10] elfload: fix size of registers for N32

2013-04-04 Thread Paolo Bonzini
Il 04/04/2013 17:46, Peter Maydell ha scritto: > On 4 April 2013 16:41, Paolo Bonzini wrote: >> Il 04/04/2013 17:32, Peter Maydell ha scritto: >>> This is kind of ugly but it looks like the kernel is kind >>> of ugly too (ie elf_greg_t as a type is not defined the >>> same way necessarily for all

Re: [Qemu-devel] [PATCH v2 02/10] elfload: fix size of registers for N32

2013-04-04 Thread Peter Maydell
On 4 April 2013 16:41, Paolo Bonzini wrote: > Il 04/04/2013 17:32, Peter Maydell ha scritto: >> This is kind of ugly but it looks like the kernel is kind >> of ugly too (ie elf_greg_t as a type is not defined the >> same way necessarily for all targets and ABIs). At some >> point this type should

Re: [Qemu-devel] [PATCH v2 02/10] elfload: fix size of registers for N32

2013-04-04 Thread Paolo Bonzini
Il 04/04/2013 17:32, Peter Maydell ha scritto: > This is kind of ugly but it looks like the kernel is kind > of ugly too (ie elf_greg_t as a type is not defined the > same way necessarily for all targets and ABIs). At some > point this type should probably live in a header file > in linux-user/$arc

Re: [Qemu-devel] [PATCH v2 02/10] elfload: fix size of registers for N32

2013-04-04 Thread Peter Maydell
On 3 April 2013 11:32, Paolo Bonzini wrote: > Registers are 64-bit in size for the MIPS n32 ABI. Define > target_elf_greg_t accordingly, and use the correct function > to do endian swaps. > > Signed-off-by: Paolo Bonzini > --- > linux-user/elfload.c | 21 ++--- > 1 file changed,

[Qemu-devel] [PATCH v2 02/10] elfload: fix size of registers for N32

2013-04-03 Thread Paolo Bonzini
Registers are 64-bit in size for the MIPS n32 ABI. Define target_elf_greg_t accordingly, and use the correct function to do endian swaps. Signed-off-by: Paolo Bonzini --- linux-user/elfload.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/linux-user/e