This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: x86_64 config files
- To: Jiri Smid <smid at suse dot cz>
- Subject: Re: x86_64 config files
- From: Andreas Jaeger <aj at suse dot de>
- Date: 05 Apr 2001 13:23:16 +0200
- Cc: gdb at sources dot redhat dot com
- References: <s8vg0fnob2o.fsf@naga.suse.cz>
Jiri Smid <smid@suse.cz> writes:
> Hi,
>
> There are config files for AMD x86_64 architecture. The config headers
> include i386 stuff and redefine some parts. In this first version there are
> redefined registers.
>
>
> diff -uNr gdb.orig/gdb/config/i386/nm-x86_64.h gdb/gdb/config/i386/nm-x86_64.h
> --- gdb.orig/gdb/config/i386/nm-x86_64.h Thu Jan 1 01:00:00 1970
> +++ gdb/gdb/config/i386/nm-x86_64.h Thu Apr 5 11:17:38 2001
> @@ -0,0 +1,28 @@
> +/* Native support for Linux/x86_64.
Just a minor nit: The architecture is called x86-64. Since
config.guess can't handle this we normally use x86_64. But
documentation should always use the hyphen for x86-64.
> +/* Although the x86_64 extended floating-point has only 80 significant
> + bits, a `long double' actually takes up 128, probably to enforce
> + alignment. */
remove the probably, your guess is right.
> +/* Number of SSE registers. */
> +#ifdef HAVE_SSE2_REGS
> +#undef NUM_SSE_REGS
> +#define NUM_SSE_REGS (17)
> +#endif
x86-64 has 16 SSE registers.
Thanks,
Andreas
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj