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: Support i386 without SSE


> Date: Wed, 7 Apr 2010 13:05:47 -0700
> From: "H.J. Lu" <hongjiu.lu@intel.com>
> 
> Hi,
> 
> This patch supports i386 without SSE.  Any comments/suggestions?

Eli, Pierre, can you test wether this fixes the issues on Go32?

If so, I'm ok with this going in.


> 2010-04-07  H.J. Lu  <hongjiu.lu@intel.com>
> 
> 	* i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
> 	if HAVE_PTRACE_GETFPXREGS is defined.
> 	(i386_linux_read_description): Set have_ptrace_getfpxregs and
> 	have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
> 
> 	* i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
> 	(i386_linux_core_read_description): Return tdesc_i386_mmx_linux
> 	if .reg-xfp section doesn't exist.
> 	(_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
> 
> 	* i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
> 
> 	* i386-tdep.c: Include "features/i386/i386-mmx.c".
> 	(i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
> 	(i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional.  Set
> 	xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
> 	(i386_gdbarch_init): Update comments.
> 	(_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
> 
> 	* common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
> 
> 	* features/Makefile (i386/i386-mmx-expedite): New.
> 	(i386/i386-mmx-linux-expedite): Likewise.
> 	($(outdir)/i386/i386-mmx.dat): Likewise.
> 	($(outdir)/i386/i386-mmx-linux.dat): Likewise.
> 
> 	* features/i386/i386-mmx-linux.c: New.
> 	* features/i386/i386-mmx-linux.xml: Likewise.
> 	* features/i386/i386-mmx.c: Likewise.
> 	* features/i386/i386-mmx.xml: Likewise.
> 	* regformats/i386/i386-mmx-linux.dat: Likewise.
> 	* regformats/i386/i386-mmx.dat: Likewise.
> 
> 	* features/Makefile (WHICH): Add i386/i386-mmx and
> 	i386/i386-mmx-linux.


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