docs/cpu_features.md: document hosts without AVX and SDE+Wine findings (DOC-NO-AVX-HOSTS) #854

Manually merged
github merged 1 commit from gh-pr/854/head into gh-pr/854/base 2026-11-26 09:24:38 +00:00
Owner

@⁠dpalacios69 on GitHub · 2026-11-24 14:38 UTC · original
dpalacios69:docs-no-avx-hosts → main · +21 −1 · 2 files · 1 commits · merged 2026-11-25 21:15 UTC

Claimed in the coordination issue as: DOC-NO-AVX-HOSTS (#14)

What and why

docs/boot.md says LEONIDA_SKIP_CPU_CHECK=1 skips the AVX preflight but that "the game itself still needs AVX", and docs/cpu_features.md covers AMD Zen 2+ and Intel Haswell/Broadwell+, not hosts before AVX. This adds a short "Hosts without AVX" subsection to docs/cpu_features.md (end of "What it means for the runtime") and a one-line pointer in docs/boot.md.

Everything in it was measured on one host: Intel Xeon X5675 (Westmere, SSE4.2; no AVX, AVX2, FMA, BMI2 or XSAVE), Fedora 44, wine-11.21 (Staging), Intel SDE 10.13.1, a local gta6rt.exe build from 2026-11-24:

  • What works without AVX: the native Linux runtime and Vulkan tools, the Vulkan GPU suite, shader translation, asset export.
  • gta6rt --init and --run exit 4 at the AVX preflight; with LEONIDA_SKIP_CPU_CHECK=1 the guest faults on its first AVX instruction.
  • Under Intel SDE (sde64 -hsw -chip_check_disable 1) the first AVX instruction is passed and the process reaches InitializeApiImplEx2 (offline) after about 110 s, then stops before any window or D3D12 call (SIGSEGV with -raise-int3; -ptr-raise makes Pin abort; LEONIDA_SKIP_INT3=1 --trace changes nothing). Conclusion stated as "no useful path found on this host", not "impossible".
  • Not measured, and said so: other emulators (QEMU TCG with AVX2) and Rosetta 2.

No addresses or paths from the game are quoted.

Tested

  • python3 -I tests/test_docs_*.py: all 12 modules pass, 0 failures. git diff --check clean.
  • Docs only; no runtime code changed. It does not touch docs/README.md (claimed in DOC-INDEX-MISSING-PAGES) or runtime/src/host_cpu.* (#183).

GPUs tested: n/a (docs only). The measurements above were taken with an NVIDIA GTX 1660 SUPER, 620.70.06, Fedora Linux 44.

AI-assisted: yes (Claude Code): the runs, the draft and the checks.

Checklist

  • Based on current main and merges cleanly (a conflicting pull request is labeled needs rebase).
  • One topic; follow-up work goes in a new pull request.
  • No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here.
  • A new translator rule is in the contract table of docs/design.md, with how it was confirmed. (n/a)
**@⁠dpalacios69** on GitHub · 2026-11-24 14:38 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/854) `dpalacios69:docs-no-avx-hosts` → `main` · +21 −1 · 2 files · 1 commits · merged 2026-11-25 21:15 UTC Claimed in the coordination issue as: DOC-NO-AVX-HOSTS (https://git.gtahub.st/github/ubiquitarianism--leonida/issues/14) ### What and why `docs/boot.md` says `LEONIDA_SKIP_CPU_CHECK=1` skips the AVX preflight but that "the game itself still needs AVX", and `docs/cpu_features.md` covers AMD Zen 2+ and Intel Haswell/Broadwell+, not hosts before AVX. This adds a short "Hosts without AVX" subsection to `docs/cpu_features.md` (end of "What it means for the runtime") and a one-line pointer in `docs/boot.md`. Everything in it was measured on one host: Intel Xeon X5675 (Westmere, SSE4.2; no AVX, AVX2, FMA, BMI2 or XSAVE), Fedora 44, `wine-11.21 (Staging)`, Intel SDE 10.13.1, a local `gta6rt.exe` build from 2026-11-24: - What works without AVX: the native Linux runtime and Vulkan tools, the Vulkan GPU suite, shader translation, asset export. - `gta6rt --init` and `--run` exit 4 at the AVX preflight; with `LEONIDA_SKIP_CPU_CHECK=1` the guest faults on its first AVX instruction. - Under Intel SDE (`sde64 -hsw -chip_check_disable 1`) the first AVX instruction is passed and the process reaches `InitializeApiImplEx2` (offline) after about 110 s, then stops before any window or D3D12 call (`SIGSEGV` with `-raise-int3`; `-ptr-raise` makes Pin abort; `LEONIDA_SKIP_INT3=1 --trace` changes nothing). Conclusion stated as "no useful path found on this host", not "impossible". - Not measured, and said so: other emulators (QEMU TCG with AVX2) and Rosetta 2. No addresses or paths from the game are quoted. ### Tested - `python3 -I tests/test_docs_*.py`: all 12 modules pass, 0 failures. `git diff --check` clean. - Docs only; no runtime code changed. It does not touch `docs/README.md` (claimed in DOC-INDEX-MISSING-PAGES) or `runtime/src/host_cpu.*` (#183). GPUs tested: n/a (docs only). The measurements above were taken with an NVIDIA GTX 1660 SUPER, 620.70.06, Fedora Linux 44. AI-assisted: yes (Claude Code): the runs, the draft and the checks. ### Checklist - [x] Based on current `main` and merges cleanly (a conflicting pull request is labeled `needs rebase`). - [x] One topic; follow-up work goes in a new pull request. - [x] No game data, keys or decryption (CONTRIBUTING.md), including in logs or reports quoted here. - [x] A new translator rule is in the contract table of `docs/design.md`, with how it was confirmed. (n/a)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:24:36 +00:00
github manually merged commit 37c601760e into gh-pr/854/base 2026-11-26 09:24:38 +00:00
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 14:42 UTC · original · approved these changes

Clean-Room Audit & Documentation Review — PR #854 (DOC-NO-AVX-HOSTS)

Valuable empirical documentation for AVX emulation boundaries.

Technical Verification

  1. Measured Behavior:
    • Accurately records hardware/software limits on non-AVX hosts (Intel Xeon X5675, Westmere) under Linux/Wine with Intel SDE.
    • Clarifies that while offline tooling (Vulkan GPU suite, SPIR-V translation, asset export) runs fine without AVX, runtime execution via SDE terminates with SIGSEGV/Pin instrumentation issues due to CLZERO and exception handling conflicts.
    • Cross-references updated in docs/boot.md and docs/cpu_features.md.
  2. Clean-Room Compliance:
    • Empirical architectural telemetry only. No game data, zero binaries quoted.

Verdict: APPROVED

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 14:42 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/854#pullrequestreview-6041327630) · **approved these changes** ### Clean-Room Audit & Documentation Review — PR #854 (`DOC-NO-AVX-HOSTS`) Valuable empirical documentation for AVX emulation boundaries. #### Technical Verification 1. **Measured Behavior**: - Accurately records hardware/software limits on non-AVX hosts (Intel Xeon X5675, Westmere) under Linux/Wine with Intel SDE. - Clarifies that while offline tooling (Vulkan GPU suite, SPIR-V translation, asset export) runs fine without AVX, runtime execution via SDE terminates with SIGSEGV/Pin instrumentation issues due to CLZERO and exception handling conflicts. - Cross-references updated in `docs/boot.md` and `docs/cpu_features.md`. 2. **Clean-Room Compliance**: - Empirical architectural telemetry only. No game data, zero binaries quoted. **Verdict: APPROVED**
Author
Owner

@⁠abnalstlll-byte on GitHub · 2026-11-24 14:43 UTC · original · approved these changes

Audited and verified. Documents host requirements and limitations on legacy architectures lacking AVX under Wine and Intel SDE in docs/cpu_features.md, and cross-references from docs/boot.md. Clean-room compliant. Approved.

**@⁠abnalstlll-byte** on GitHub · 2026-11-24 14:43 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/854#pullrequestreview-6041351516) · **approved these changes** Audited and verified. Documents host requirements and limitations on legacy architectures lacking AVX under Wine and Intel SDE in docs/cpu_features.md, and cross-references from docs/boot.md. Clean-room compliant. Approved.
Author
Owner

@⁠aslan2142 on GitHub · 2026-11-25 21:15 UTC · original

Merged, thanks! Docs only; the docs tests pass with it merged onto main.

  • Checked on main f0cb45482 + 37c601760: the semantic suite passes (491 files, 6,312 tests, 0 files failed); the 15 docs and writer tests pass; check_no_game_data.py is clean on the 2 changed files.

AI-assisted (Claude Code, Claude Opus 5.5).

**@⁠aslan2142** on GitHub · 2026-11-25 21:15 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/854#issuecomment-7174827064) Merged, thanks! Docs only; the docs tests pass with it merged onto `main`. - **Checked on `main` `f0cb45482` + `37c601760`:** the semantic suite passes (491 files, 6,312 tests, 0 files failed); the 15 docs and writer tests pass; `check_no_game_data.py` is clean on the 2 changed files. AI-assisted (Claude Code, Claude Opus 5.5).
This discussion has been locked. Commenting is limited to contributors.
No description provided.