diff options
| author | Krashgamer <64923888+Krashgamer@users.noreply.github.com> | 2026-11-23 16:41:23 +0100 |
|---|---|---|
| committer | Krashgamer <64923888+Krashgamer@users.noreply.github.com> | 2026-11-23 16:44:42 +0100 |
| commit | 85daaa1bb15d02e2e123dbc787108dfb0cf877cf (patch) | |
| tree | b9b74da936860effa58dbdacfe18ce1633d43b9b /runtime/src/main.cpp | |
| parent | 413ffd6eb25da7e13907928bbc87e4c7e04fe026 (diff) | |
cpu_feature_scan: list the CPU instructions an x64 image needs that a desktop CPU may lack
The runtime runs the Xbox Series (Zen 2) executable natively, so an instruction the host CPU lacks raises #UD
where it is reached. tools/cpu_feature_scan.py streams dumpbin /disasm like inline_scan.py, maps each
instruction to its CPUID feature or privilege class (AMD-only, newer-Intel-only, not on Zen 2, privileged,
kernel call, host query, baseline), and splits the counts by .pdata range.
docs/cpu_features.md records the 1.0.2.1 result (counts only): 19 SSE4a, 10 CLZERO and 4 MONITORX/MWAITX
sites (AMD only) and 8 CLWB sites, all real code; the privileged hits are jump-table data.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/src/main.cpp')
0 files changed, 0 insertions, 0 deletions