https://git.reactos.org/?p=reactos.git;a=commitdiff;h=767cb4cff47ff324ee20d26f6e077fb31a95b566

commit 767cb4cff47ff324ee20d26f6e077fb31a95b566
Author:     winesync <[email protected]>
AuthorDate: Fri Sep 11 19:53:59 2020 +0200
Commit:     Jérôme Gardou <[email protected]>
CommitDate: Wed Sep 16 10:36:02 2020 +0200

    [WINESYNC] dbghelp: Add xmm and mxcsr register mapping functions for i386.
    
    Signed-off-by: Vijay Kiran Kamuju <[email protected]>
    Signed-off-by: Alexandre Julliard <[email protected]>
    
    wine commit id 7e965d60b542c0baa6f79605f45669a2ea9bceb8 by Vijay Kiran 
Kamuju <[email protected]>
---
 dll/win32/dbghelp/cpu_i386.c   | 10 ++++++++++
 sdk/tools/winesync/dbghelp.cfg |  2 +-
 2 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/dll/win32/dbghelp/cpu_i386.c b/dll/win32/dbghelp/cpu_i386.c
index 78f477115d7..23c1fb02c67 100644
--- a/dll/win32/dbghelp/cpu_i386.c
+++ b/dll/win32/dbghelp/cpu_i386.c
@@ -610,6 +610,16 @@ static void *i386_fetch_context_reg(union ctx *pctx, 
unsigned regno, unsigned *s
     case CV_REG_FS: *size = sizeof(ctx->SegFs); return &ctx->SegFs;
     case CV_REG_GS: *size = sizeof(ctx->SegGs); return &ctx->SegGs;
 
+    case CV_REG_XMM0 + 0: *size = 16; return &ctx->ExtendedRegisters[10*16];
+    case CV_REG_XMM0 + 1: *size = 16; return &ctx->ExtendedRegisters[11*16];
+    case CV_REG_XMM0 + 2: *size = 16; return &ctx->ExtendedRegisters[12*16];
+    case CV_REG_XMM0 + 3: *size = 16; return &ctx->ExtendedRegisters[13*16];
+    case CV_REG_XMM0 + 4: *size = 16; return &ctx->ExtendedRegisters[14*16];
+    case CV_REG_XMM0 + 5: *size = 16; return &ctx->ExtendedRegisters[15*16];
+    case CV_REG_XMM0 + 6: *size = 16; return &ctx->ExtendedRegisters[16*16];
+    case CV_REG_XMM0 + 7: *size = 16; return &ctx->ExtendedRegisters[17*16];
+
+    case CV_REG_MXCSR: *size = sizeof(DWORD); return 
&ctx->ExtendedRegisters[24];
     }
     FIXME("Unknown register %x\n", regno);
     return NULL;
diff --git a/sdk/tools/winesync/dbghelp.cfg b/sdk/tools/winesync/dbghelp.cfg
index 2fecd3ea9c7..14f279794a5 100644
--- a/sdk/tools/winesync/dbghelp.cfg
+++ b/sdk/tools/winesync/dbghelp.cfg
@@ -4,4 +4,4 @@ files:
   include/dbghelp.h: sdk/include/psdk/dbghelp.h
   include/wine/mscvpdb.h: sdk/include/reactos/wine/mscvpdb.h
 tags:
-  wine: 70b2d181b1547dbe3c2a62e57c6afb0ee903f358
+  wine: 7e965d60b542c0baa6f79605f45669a2ea9bceb8

Reply via email to