2001-11-30 Pierre Muller <muller@ics.u-strasbg.fr>
authorPierre Muller <muller@sourceware.org>
Mon, 3 Dec 2001 08:19:01 +0000 (08:19 +0000)
committerPierre Muller <muller@sourceware.org>
Mon, 3 Dec 2001 08:19:01 +0000 (08:19 +0000)
* win32-nat.c (mappings): Correct position of XMM registers,
based on FXSAVE instruction structure.

gdb/ChangeLog
gdb/win32-nat.c
gdb/windows-nat.c

index 52b0a5be59ebc8b0847761e209e932808dd7e86e..3cdd070244dc788e9878131495fb6f29d2da3ebe 100644 (file)
@@ -1,3 +1,8 @@
+2001-11-30  Pierre Muller  <muller@ics.u-strasbg.fr>
+
+       * win32-nat.c (mappings): Correct position of XMM registers,
+       based on FXSAVE instruction structure.
+
 2001-12-02  Andrew Cagney  <ac131313@redhat.com>
 
        * jv-lang.c (get_java_class_symtab): Use xmmalloc instead of
index 1772c24a3b9dab8af1fabd6a82f61f75177675cf..afd4035e6d62dd975d229961872d04789549259c 100644 (file)
@@ -179,16 +179,16 @@ static const int mappings[] =
   context_offset (FloatSave.ErrorSelector)
 #ifdef HAVE_SSE_REGS
   /* XMM0-7 */ ,
-  context_offset (ExtendedRegisters[0*16]),
-  context_offset (ExtendedRegisters[1*16]),
-  context_offset (ExtendedRegisters[2*16]),
-  context_offset (ExtendedRegisters[3*16]),
-  context_offset (ExtendedRegisters[4*16]),
-  context_offset (ExtendedRegisters[5*16]),
-  context_offset (ExtendedRegisters[6*16]),
-  context_offset (ExtendedRegisters[7*16]),
-  /* MXCSR untested */
-  context_offset (ExtendedRegisters[8*16])
+  context_offset (ExtendedRegisters[10*16]),
+  context_offset (ExtendedRegisters[11*16]),
+  context_offset (ExtendedRegisters[12*16]),
+  context_offset (ExtendedRegisters[13*16]),
+  context_offset (ExtendedRegisters[14*16]),
+  context_offset (ExtendedRegisters[15*16]),
+  context_offset (ExtendedRegisters[16*16]),
+  context_offset (ExtendedRegisters[17*16]),
+  /* MXCSR */
+  context_offset (ExtendedRegisters[24])
 #endif
 };
 
index 1772c24a3b9dab8af1fabd6a82f61f75177675cf..afd4035e6d62dd975d229961872d04789549259c 100644 (file)
@@ -179,16 +179,16 @@ static const int mappings[] =
   context_offset (FloatSave.ErrorSelector)
 #ifdef HAVE_SSE_REGS
   /* XMM0-7 */ ,
-  context_offset (ExtendedRegisters[0*16]),
-  context_offset (ExtendedRegisters[1*16]),
-  context_offset (ExtendedRegisters[2*16]),
-  context_offset (ExtendedRegisters[3*16]),
-  context_offset (ExtendedRegisters[4*16]),
-  context_offset (ExtendedRegisters[5*16]),
-  context_offset (ExtendedRegisters[6*16]),
-  context_offset (ExtendedRegisters[7*16]),
-  /* MXCSR untested */
-  context_offset (ExtendedRegisters[8*16])
+  context_offset (ExtendedRegisters[10*16]),
+  context_offset (ExtendedRegisters[11*16]),
+  context_offset (ExtendedRegisters[12*16]),
+  context_offset (ExtendedRegisters[13*16]),
+  context_offset (ExtendedRegisters[14*16]),
+  context_offset (ExtendedRegisters[15*16]),
+  context_offset (ExtendedRegisters[16*16]),
+  context_offset (ExtendedRegisters[17*16]),
+  /* MXCSR */
+  context_offset (ExtendedRegisters[24])
 #endif
 };