On 14 January 2014 23:01, Alexander Graf <ag...@suse.de> wrote: >> Is the underlying issue here that we might have a CPU which is >> in littleendian mode but in a QEMU executable compiled with >> TARGET_WORDS_BIGENDIAN ? (If so I can't help feeling that >> the gdb stub is only the tip of the iceberg for things that might need >> attention...) > > Yes, which is going to be the same problem you have for AArch64 :). > LE vs BE is really just a register flip. The qemu binary is the same > for both when you run system emulation mode.
Right, then I think we really need to look at the issue in a more holistic fashion. You're essentially trying to make TARGET_WORDS_BIGENDIAN irrelevant, which is a goal I thoroughly approve of, but it's pretty thoroughly baked into various parts of the codebase and I don't think it's going to be easy to eradicate. thanks -- PMM