[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] big endian arm.
From: |
Philippe Mathieu-Daudé |
Subject: |
Re: [Qemu-devel] big endian arm. |
Date: |
Fri, 11 Aug 2017 08:29:04 -0300 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
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.
Maybe I didn't hit this problem since I use the same setup than with
openocd/real cpu with the following .gdbinit:
set architecture armv5te
set arm fpu vfp
set endian big
set remote hardware-breakpoint-limit 6
set breakpoint auto-hw on
set displaced-stepping on
* in monitor x command is good endianness.
* the data order seems to be wrong endianness:
Here is my Hello World: lleHlroW
Indeed I hit a similar problem and found that
memory::access_with_adjusted_size() has some issues, I could never
finish the unit-tests but this is the first entry on my 2.11 TODO.
I'll send as RFC.
Regards,
Phil.