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: Fix LP64 model bug in PPC simulator


> Date: Mon, 23 Jan 2006 21:55:16 -0800
> From: Mark Mitchell <mark@codesourcery.com>
> 
> The PowerPC simulator didn't work on a little-endian LP64 platform
> (like x86_64-unknown-linux-gnu).  The problem turned out to be that
> ppc/sim/words.h is defining {un,}signed32 unconditionally as "long" --
> but then depending on that being 32 bits.  Fixed with a bit of
> autoconfiscation.  Tested by verifying that I can now run a simple
> PowerPC binary in simulation on x86_64-unknown-linux-gnu.
> 
> OK?

Any reason not to just use 'int'?  I'm pretty sure our code base makes
that assumption in a lot of places.

Mark


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