Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 542d142

Browse files
author
John Chen (CLR)
committed
Fix XMM register count in CONTEXT_SetThreadContextOnPort in PAL
1 parent 1ea6730 commit 542d142

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pal/src/thread/context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,7 @@ CONTEXT_SetThreadContextOnPort(
12581258
for (int i = 0; i < 8; i++)
12591259
memcpy((&State.__fpu_stmm0)[i].__mmst_reg, &lpContext->FltSave.FloatRegisters[i], 10);
12601260

1261-
memcpy(&State.__fpu_xmm0, &lpContext->Xmm0, 8 * 16);
1261+
memcpy(&State.__fpu_xmm0, &lpContext->Xmm0, 16 * 16);
12621262
#else
12631263
#error Unexpected architecture.
12641264
#endif

0 commit comments

Comments
 (0)