cpu: emulate AMD-only Zen 2 instructions in software (#449)

Handle immediate EXTRQ and INSERTQ as well as MONITORX and MWAITX when the host raises illegal-instruction faults. Add unit coverage for SSE4a bit-field semantics and preserve existing load-time patching.

Co-authored-by: zocomputer <help@zocomputer.com>
This commit is contained in:
Nekono
2026-07-19 21:57:42 +03:00
committed by GitHub
parent 0c467e8c57
commit 8ef5a54ee4
4 changed files with 420 additions and 0 deletions
@@ -133,6 +133,11 @@ public sealed partial class DirectExecutionBackend
{
return -1;
}
if (exceptionCode == StatusIllegalInstruction &&
TryRecoverAmdCompatInstruction(contextRecord, rip))
{
return -1;
}
if (IsBenignHostDebugException(exceptionCode))
{
return -1;