Re: [Qemu-devel] big endian arm.

2017-08-11 Thread Philippe Mathieu-Daudé
On 08/11/2017 07:18 AM, Peter Maydell wrote: On 11 August 2017 at 10:59, KONRAD Frederic wrote: [...]>> It seems that when I try to load a big endian image on a Cortex-R5 it gets confused: * the instructions are fine it executes some code. * GDB address / insns are wrong endianness. * in

Re: [Qemu-devel] big endian arm.

2017-08-11 Thread KONRAD Frederic
On 08/11/2017 01:29 PM, Philippe Mathieu-Daudé wrote: Hi Frederic, I'm slowly working on Hercules MCU peripherals and use a R4F core. It seems that when I try to load a big endian image on a Cortex-R5 it gets confused: * the instructions are fine it executes some code. So far no problem

Re: [Qemu-devel] big endian arm.

2017-08-11 Thread Philippe Mathieu-Daudé
Hi Frederic, I'm slowly working on Hercules MCU peripherals and use a R4F core. It seems that when I try to load a big endian image on a Cortex-R5 it gets confused: * the instructions are fine it executes some code. So far no problem here * GDB address / insns are wrong endianness. Ma

Re: [Qemu-devel] big endian arm.

2017-08-11 Thread KONRAD Frederic
On 08/11/2017 01:05 PM, Peter Maydell wrote: On 11 August 2017 at 12:03, KONRAD Frederic wrote: On 08/11/2017 12:18 PM, Peter Maydell wrote: That said, if you specify a BE elf file then we do set the SCTLR.EE and CPSR.E bits on reset in do_cpu_reset() (a change added in the commit you quote)

Re: [Qemu-devel] big endian arm.

2017-08-11 Thread Peter Maydell
On 11 August 2017 at 12:03, KONRAD Frederic wrote: > On 08/11/2017 12:18 PM, Peter Maydell wrote: >> That said, if you specify a BE elf file then we do >> set the SCTLR.EE and CPSR.E bits on reset in do_cpu_reset() >> (a change added in the commit you quote), which is probably >> why we haven't no

Re: [Qemu-devel] big endian arm.

2017-08-11 Thread KONRAD Frederic
On 08/11/2017 12:18 PM, Peter Maydell wrote: On 11 August 2017 at 10:59, KONRAD Frederic wrote: Hi Peters, I got some strange results since this commit: commit 9776f636455b6f0d9c14dce112242ed653f954b4 Author: Peter Crosthwaite Date: Fri Mar 4 11:30:21 2016 + arm: boot: Support

Re: [Qemu-devel] big endian arm.

2017-08-11 Thread Peter Maydell
On 11 August 2017 at 10:59, KONRAD Frederic wrote: > Hi Peters, > > I got some strange results since this commit: > > commit 9776f636455b6f0d9c14dce112242ed653f954b4 > Author: Peter Crosthwaite > Date: Fri Mar 4 11:30:21 2016 + > > arm: boot: Support big-endian elfs > > Support ARM

[Qemu-devel] big endian arm.

2017-08-11 Thread KONRAD Frederic
Hi Peters, I got some strange results since this commit: commit 9776f636455b6f0d9c14dce112242ed653f954b4 Author: Peter Crosthwaite Date: Fri Mar 4 11:30:21 2016 + arm: boot: Support big-endian elfs Support ARM big-endian ELF files in system-mode emulation. When loading an e