You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Intel i9-12900K crashes with 0xC000001D illegal instruction when launching a game #216
i didnt know how to word it soo yes i used chatgpt....
Intel i9-12900K crashes with 0xC000001D illegal instruction when launching a game
XCL Version
v0.1.0-mod.6
System Specifications
CPU: Intel Core i9-12900K
GPU: NVIDIA GeForce RTX 5070
RAM: 32GB DDR4
OS: Windows 11 25H2
Problem Description
When launching the game through XCL, it initially starts loading and eventually displays a purple background. The game's startup voice narration also plays, but it is extremely stuttery. After remaining on this screen briefly, the game crashes and closes.
Crash Details
The XCL log reports:
Exception: 0xC000001D (Illegal Instruction)
Executable: game_scarlett_master.exe
Crash offset: +0x2e7ff1
Instruction bytes: F2 0F 78 C1
The same crash occurs consistently at the same executable offset, even though the time before the crash varies.
Troubleshooting Already Attempted
Enabled automatic Windows virtual memory management.
Increased available memory by adjusting virtual memory settings.
Confirmed that the system has 32GB of RAM.
Retested after memory usage improved, but the same crash persisted.
Question
Could this be an unsupported CPU instruction, specifically AMD SSE4a EXTRQ, that is not being emulated by XCL on Intel processors?
Is there a workaround or a possible fix for this instruction compatibility issue?
I provided the complete XCL logs and crash report for further investigation.
Yes: F2 0F 78 C1 is AMD's SSE4a INSERTQ xmm0, xmm1, imm8, imm8. Zen 2 (the console's CPU) has it, and no Intel CPU does. #151 (merged) emulates the other console-only instructions but not SSE4a. Open PR #209 emulates INSERTQ and EXTRQ, and its test decodes exactly these bytes (F2 0F 78 C1 10 10, insertq xmm0, xmm1, 16, 16).
If you can build #209's branch and run the game with it, a reply on #209 saying whether the crash at +0x2e7ff1 is gone (or a new illegal-instruction line with other bytes appears) would tell the maintainer what he needs.
AI use: Claude Code, Claude Opus 5.5. Decoded from the bytes in your report and #209's diff; not run on an Intel CPU.
Thanks for the report - F2 0F 78 C1 is SSE4a's INSERTQ, an AMD-only instruction the console's Zen 2 has and Intel CPUs lack; #151 covered CLZERO / MONITORX / MWAITX / RDPRU / RDPID / CLWB but not SSE4a. Fixed on main in 0cd0a53: EXTRQ and INSERTQ (both the immediate and the register forms) are emulated in the exception handler. Note that v0.1.0-mod.6 is a fork's build (theaustinayers/xcl), not this repository's - please build current main (or wait for that fork to pick the commit up) and reopen if it still happens. An instruction emulated through an exception is slow, so if this one sits in a hot loop (the stuttery voice you describe may be that), the log line "Insertq ... emulated" will say where.
af20b4b matches native SSE4a on a Ryzen 9 9950X (Zen 5) in all 73,773 cases tried (both forms, every length and index, upper quadword, prefix and REX edge cases). One leftover outside SSE4a, CLZERO with a 0x67 prefix using RAX instead of EAX, is fixed in #227.
Activity
Kalmarv commentedon Nov 23, 2026
Yes:
F2 0F 78 C1is AMD's SSE4aINSERTQ xmm0, xmm1, imm8, imm8. Zen 2 (the console's CPU) has it, and no Intel CPU does. #151 (merged) emulates the other console-only instructions but not SSE4a. Open PR #209 emulatesINSERTQandEXTRQ, and its test decodes exactly these bytes (F2 0F 78 C1 10 10,insertq xmm0, xmm1, 16, 16).If you can build #209's branch and run the game with it, a reply on #209 saying whether the crash at
+0x2e7ff1is gone (or a new illegal-instruction line with other bytes appears) would tell the maintainer what he needs.AI use: Claude Code, Claude Opus 5.5. Decoded from the bytes in your report and #209's diff; not run on an Intel CPU.
SSE4a on Intel CPUs: EXTRQ and INSERTQ emulated (#216)
ivall commentedon Nov 23, 2026
Thanks for the report -
F2 0F 78 C1is SSE4a's INSERTQ, an AMD-only instruction the console's Zen 2 has and Intel CPUs lack; #151 covered CLZERO / MONITORX / MWAITX / RDPRU / RDPID / CLWB but not SSE4a. Fixed on main in 0cd0a53: EXTRQ and INSERTQ (both the immediate and the register forms) are emulated in the exception handler. Note that v0.1.0-mod.6 is a fork's build (theaustinayers/xcl), not this repository's - please build current main (or wait for that fork to pick the commit up) and reopen if it still happens. An instruction emulated through an exception is slow, so if this one sits in a hot loop (the stuttery voice you describe may be that), the log line "Insertq ... emulated" will say where.Kalmarv commentedon Nov 23, 2026
af20b4b matches native SSE4a on a Ryzen 9 9950X (Zen 5) in all 73,773 cases tried (both forms, every length and index, upper quadword, prefix and REX edge cases). One leftover outside SSE4a, CLZERO with a 0x67 prefix using RAX instead of EAX, is fixed in #227.
AI use: Claude Code, Claude Opus 5.5
e2e: exercise SSE4a bitfields through the console title
SSE4a on Intel CPUs: MOVNTSS and MOVNTSD emulated