This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] sim/sh: fix movua for little endian


The movua opcode was hardcoded for big endian; on little endian
targets it would retrieve the word backwards.  Note that the global
endian compensators are keyed to the HOST endian as well and are not
usable for this purpose.

The problem and solution are obvious, but my implementation may not
be, so I await approval (global maintainers - no sim/sh maintainer).

Tested with an ABI testsuite I'm working on which is known to use
movua.

Can you add a sim/testsuite/sh-elf/movua.s test? You'll need to clone the infrastructure from one of the other test directories.


Andrew

2004-08-13 DJ Delorie <dj@redhat.com>

* gencode.c (movua.l): Compensate for endianness.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]