This is the mail archive of the gdb-patches@sourceware.org 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] aarch64 sim big-endian support


Hi Jim,

> The problem is with the
> GRegisterValue untion.  You have
> typedef union GRegisterValue
> {
>   int8_t   s8;
> ...
>   int64_t s64;
> } GRegister;
> On a little-endian host, the s8 member will match the low-byte of the
> s64 member, which is what we want.  However, on a big-endian host, the
> s8 member will match the high-byte of the u64 member, and the
> simulator fails.

Ah, yes.  I had not considered this.

> Fixing the problem this way means that we require either an ISO C 2011
> compiler, or a compiler that supports GCC extensions to ISO C 1990 or
> 1999. 

I have no problems with this requirement.

I have now checked in your patch (to save time).  Thanks very much for
persuing this matter.

Cheers
  Nick


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