This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: PATCH: Fix LP64 model bug in PPC simulator
- From: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- To: mark at codesourcery dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Tue, 24 Jan 2006 20:25:58 +0100 (CET)
- Subject: Re: PATCH: Fix LP64 model bug in PPC simulator
- References: <200601240555.k0O5tGmu007234@sethra.codesourcery.com>
> 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