upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/boot.md
diff options
context:
space:
mode:
authorSenne Cools <113857183+sennecools@users.noreply.github.com>2026-11-23 23:07:51 +0100
committerSenne Cools <113857183+sennecools@users.noreply.github.com>2026-11-23 23:07:51 +0100
commitad6e5d6bbee5bd8c3c8a7e95216f12038fe3db22 (patch)
tree4f0020d3c5053cf5ce189b7a26c5150c4861b5af /docs/boot.md
parent5d74c272363f2703265d44e6aaab1a1df8ddfaf3 (diff)
gta6rt: --init/--run stop with a clear message on a host without AVX
The game runs AVX code from its TLS callbacks on, so a CPU or OS without AVX (a QEMU qemu64 guest) died with a bare 0xC000001D. Check CPUID.1 AVX/OSXSAVE and XCR0 YMM state first, print one line and exit 4 (3 is LEONIDA_UNIMPLEMENTED=stop). --dry-run is unchanged and LEONIDA_SKIP_CPU_CHECK=1 skips the check. AI-assisted.
Diffstat (limited to 'docs/boot.md')
-rw-r--r--docs/boot.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/boot.md b/docs/boot.md
index 16cbb80ee..91117956a 100644
--- a/docs/boot.md
+++ b/docs/boot.md
@@ -72,6 +72,9 @@ Useful switches:
72 printing the caller's `module+RVA` and the argument registers (with a debugger attached it breaks instead). Start 72 printing the caller's `module+RVA` and the argument registers (with a debugger attached it breaks instead). Start
73 with `log`, then use `stop` to pin the first blocker and `fail` to see how the game's own failure path reacts. 73 with `log`, then use `stop` to pin the first blocker and `fail` to see how the game's own failure path reacts.
74 This switch covers imports only; it does not affect the D3D12 outcomes. 74 This switch covers imports only; it does not affect the D3D12 outcomes.
75* `LEONIDA_SKIP_CPU_CHECK=1` skips the AVX preflight of `--init` and `--run`, which otherwise exits 4 with one line
76 naming the missing feature on a host without AVX (a QEMU `qemu64` guest; under Rosetta, set
77 `ROSETTA_ADVERTISE_AVX=1` instead). The game itself still needs AVX, so this is for the #UD emulation work.
75* `LEONIDA_SKIP_INT3=1` (with `--trace`) steps over each int3 in guest code and logs it once per address as an 78* `LEONIDA_SKIP_INT3=1` (with `--trace`) steps over each int3 in guest code and logs it once per address as an
76 `int3_skipped` event, so a boot can be followed past soft asserts (an int3 followed by code that carries on). 79 `int3_skipped` event, so a boot can be followed past soft asserts (an int3 followed by code that carries on).
77 Diagnostic only: a correct run reaches none, so each skipped address is a finding, not a fix. A failed guest file 80 Diagnostic only: a correct run reaches none, so each skipped address is a finding, not a fix. A failed guest file