cpu: lift x87 environment and state save/restore leaf functions to C++ #2673

Open
Ammmae0x wants to merge 5 commits from upstream-pr/2681 into main
Ammmae0x commented 2026-11-26 01:47:55 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Ammmae0x on 2026-11-26T01:47:55Z.


Change

Add a pure-integer portable x64-to-C++ leaf lifter (tools/cpu_x87_env_aot.py) and source-built MASM/CTest differential suite (tests/cpu/x87_env_aot.{asm,def,_check.py}, CTest cpu_aot_x87_env) covering the 7 uncovered x87 environment/state mnemonics in flat [rcx|rdx|r8] 28/108-byte 32-bit protected-mode forms: FDECSTP, FNSTENV, FSTENV (WAIT + FNSTENV), FLDENV, FNSAVE, FSAVE (WAIT + FNSAVE), and FRSTOR.

  • Models full portable 80-bit extended-precision x87 state in pure integer C++ (zero host float/double/long double or SSE/x87 arithmetic in lifted routines): FDECSTP decrements TOP = (TOP - 1) & 7 and clears FSW.C1; FNSTENV/FSTENV save the 28-byte environment and mask FCW[5:0]; FLDENV restores the 28-byte environment and recomputes non-empty tags; FNSAVE/FSAVE store the 28-byte environment plus logical ST(0)..ST(7) ((TOP+i)&7) and run FNINIT; FRSTOR restores all 108 bytes.
  • Restricts WAIT strictly to immediately preceding 28-byte FNSTENV or 108-byte FNSAVE, and rejects 16-bit operand-size o16 (14/94-byte) forms, displaced/indexed/RIP-relative memory, non-[r8] stores, stack overflow/underflow, non-empty/unknown stack at ret, SSE/VEX/EVEX encodings, prefixes, branches, and undefined ax reads.
  • Registers cpu_aot_x87_env with FORM_COVERAGE_RECORD (; coverage: record cpu_aot_x87_env), recording all 18 mnemonics including fstenv and fsave on WAIT+fnstenv/fnsave pairs.

Verification

  • Commit: 8867a115 (based on upstream/main 72879797)
  • cmake --preset dev + cmake --build --preset dev --target cpu_x87_env_aot_original cpu_x87_env_aot_original_lifted cpu_x87_env_aot_altered cpu_x87_env_aot_altered_lifted -> 0 errors, 0 warnings
  • ctest --preset dev -N -> Total Tests: 2166 (cpu_aot_x87_env registered)
  • ctest --preset dev --output-on-failure -R "^cpu_aot_x87_env$" -E "cpu_native_archive_" -> 1/1 Passed (0.43s); out\build\dev\form_coverage\cpu_aot_x87_env.txt recorded 18 forms (including fdecstp, fldenv, fnsave, fnstenv, frstor, fsave, fstenv)
  • cmake --preset release + cmake --build --preset release --target cpu_x87_env_aot_original cpu_x87_env_aot_original_lifted cpu_x87_env_aot_altered cpu_x87_env_aot_altered_lifted -> 0 errors, 0 warnings
  • ctest --preset release --output-on-failure -R "^cpu_aot_x87_env$" -E "cpu_native_archive_" -> 1/1 Passed (0.49s); out\build\release\form_coverage\cpu_aot_x87_env.txt recorded 18 forms
  • out\pe-env\Scripts\python.exe -B tests\form_coverage_check.py -> form coverage checks passed (exit 0)
  • out\pe-env\Scripts\python.exe -B tests\docs_links_check.py -> Self-test passed. Checked 19 Markdown files and 510 links. (exit 0)
  • out\pe-env\Scripts\python.exe -B tests\bidi_controls_check.py -> Self-test passed. Checked 1894 tracked source, script and build/CI files: no bidirectional controls. (exit 0)
  • Spot-mutation gate: 3/3 mutations killed (x87_fdecstp TOP decrement direction, x87_fnstenv FCW[5:0] masking, O16_ENV_CODES 16-bit guard).
  • Negative controls: 44 translator rejections (o16 forms, invalid WAIT, overflow/underflow, non-empty stack at ret, displaced/indexed/non-[r8] memory, SSE/VEX/EVEX), CLI atomic-write/path-guard negative checks, MXCSR DAZ/FTZ isolation across 4 modes, 5 mutant checks, and 7 ALTER_X87_ENV diverging exports.

Evidence and follow-up

All assembly fixtures in tests/cpu/x87_env_aot.asm are source-built MASM x64 routines authored under the repository MIT license; differential comparisons check deterministic architectural fields (avoiding host RIP-dependent native FIP/FDP after native loads).

Checklist

  • This pull request covers one reviewable behavior.
  • I included the exact command and result for every check I ran.
  • I considered a negative control or failure case for a new fixture.
  • I updated README/docs when a capability or build requirement changed.
  • I did not include game files, dumps, distribution links or secrets.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:5502465316 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2681). Originally posted by [Ammmae0x](https://github.com/Ammmae0x) on 2026-11-26T01:47:55Z. --- ## Change Add a pure-integer portable x64-to-C++ leaf lifter (`tools/cpu_x87_env_aot.py`) and source-built MASM/CTest differential suite (`tests/cpu/x87_env_aot.{asm,def,_check.py}`, CTest `cpu_aot_x87_env`) covering the 7 uncovered x87 environment/state mnemonics in flat `[rcx|rdx|r8]` 28/108-byte 32-bit protected-mode forms: `FDECSTP`, `FNSTENV`, `FSTENV` (`WAIT` + `FNSTENV`), `FLDENV`, `FNSAVE`, `FSAVE` (`WAIT` + `FNSAVE`), and `FRSTOR`. - Models full portable 80-bit extended-precision x87 state in pure integer C++ (zero host float/double/long double or SSE/x87 arithmetic in lifted routines): `FDECSTP` decrements `TOP = (TOP - 1) & 7` and clears `FSW.C1`; `FNSTENV`/`FSTENV` save the 28-byte environment and mask `FCW[5:0]`; `FLDENV` restores the 28-byte environment and recomputes non-empty tags; `FNSAVE`/`FSAVE` store the 28-byte environment plus logical `ST(0)..ST(7)` (`(TOP+i)&7`) and run `FNINIT`; `FRSTOR` restores all 108 bytes. - Restricts `WAIT` strictly to immediately preceding 28-byte `FNSTENV` or 108-byte `FNSAVE`, and rejects 16-bit operand-size `o16` (14/94-byte) forms, displaced/indexed/RIP-relative memory, non-`[r8]` stores, stack overflow/underflow, non-empty/unknown stack at `ret`, SSE/VEX/EVEX encodings, prefixes, branches, and undefined `ax` reads. - Registers `cpu_aot_x87_env` with `FORM_COVERAGE_RECORD` (`; coverage: record cpu_aot_x87_env`), recording all 18 mnemonics including `fstenv` and `fsave` on `WAIT`+`fnstenv`/`fnsave` pairs. ## Verification - Commit: `8867a115` (based on `upstream/main` `72879797`) - `cmake --preset dev` + `cmake --build --preset dev --target cpu_x87_env_aot_original cpu_x87_env_aot_original_lifted cpu_x87_env_aot_altered cpu_x87_env_aot_altered_lifted` -> 0 errors, 0 warnings - `ctest --preset dev -N` -> `Total Tests: 2166` (`cpu_aot_x87_env` registered) - `ctest --preset dev --output-on-failure -R "^cpu_aot_x87_env$" -E "cpu_native_archive_"` -> `1/1 Passed` (0.43s); `out\build\dev\form_coverage\cpu_aot_x87_env.txt` recorded 18 forms (including `fdecstp`, `fldenv`, `fnsave`, `fnstenv`, `frstor`, `fsave`, `fstenv`) - `cmake --preset release` + `cmake --build --preset release --target cpu_x87_env_aot_original cpu_x87_env_aot_original_lifted cpu_x87_env_aot_altered cpu_x87_env_aot_altered_lifted` -> 0 errors, 0 warnings - `ctest --preset release --output-on-failure -R "^cpu_aot_x87_env$" -E "cpu_native_archive_"` -> `1/1 Passed` (0.49s); `out\build\release\form_coverage\cpu_aot_x87_env.txt` recorded 18 forms - `out\pe-env\Scripts\python.exe -B tests\form_coverage_check.py` -> `form coverage checks passed` (exit 0) - `out\pe-env\Scripts\python.exe -B tests\docs_links_check.py` -> `Self-test passed. Checked 19 Markdown files and 510 links.` (exit 0) - `out\pe-env\Scripts\python.exe -B tests\bidi_controls_check.py` -> `Self-test passed. Checked 1894 tracked source, script and build/CI files: no bidirectional controls.` (exit 0) - Spot-mutation gate: 3/3 mutations killed (`x87_fdecstp` TOP decrement direction, `x87_fnstenv` `FCW[5:0]` masking, `O16_ENV_CODES` 16-bit guard). - Negative controls: 44 translator rejections (`o16` forms, invalid `WAIT`, overflow/underflow, non-empty stack at `ret`, displaced/indexed/non-`[r8]` memory, SSE/VEX/EVEX), CLI atomic-write/path-guard negative checks, MXCSR DAZ/FTZ isolation across 4 modes, 5 mutant checks, and 7 `ALTER_X87_ENV` diverging exports. ## Evidence and follow-up All assembly fixtures in `tests/cpu/x87_env_aot.asm` are source-built MASM x64 routines authored under the repository MIT license; differential comparisons check deterministic architectural fields (avoiding host RIP-dependent native FIP/FDP after native loads). ## Checklist - [x] This pull request covers one reviewable behavior. - [x] I included the exact command and result for every check I ran. - [x] I considered a negative control or failure case for a new fixture. - [x] I updated README/docs when a capability or build requirement changed. - [x] I did not include game files, dumps, distribution links or secrets. AI-assisted.
tedin7 commented 2026-11-26 03:06:59 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:06:59Z.

Review: COMMENTED


Review of head e59e5de9 (comment only).

What I checked:

  • CMake block mirrors the sibling cpu_aot_x87_exp_log registration (original/altered fixtures, FORM_COVERAGE_RECORD); the export list matches the .def.
  • The check has differential runs (native vs lifted), an altered build control, MXCSR isolation, in-process mutants and refusal/CLI controls, so it guards the new lifter.
  • No other open or merged PR covers FNSTENV/FLDENV/FNSAVE/FRSTOR/FDECSTP lifting.
  • Not a startup-path change, no game claim.

Commands executed locally (Linux):

  • python3 -I -m py_compile tools/cpu_x87_env_aot.py tests/cpu/x87_env_aot_check.py ok
  • python3 tests/docs_links_check.py ok
  • python3 tests/bidi_controls_check.py ok
  • git diff --check origin/main...HEAD clean

The differential and mutant checks need the Windows source build; they are covered by the Win2025 run, which I will report separately.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6068012170 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2681#pullrequestreview-6068012170). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T03:06:59Z. **Review:** COMMENTED --- Review of head e59e5de9 (comment only). What I checked: - CMake block mirrors the sibling `cpu_aot_x87_exp_log` registration (original/altered fixtures, `FORM_COVERAGE_RECORD`); the export list matches the `.def`. - The check has differential runs (native vs lifted), an altered build control, MXCSR isolation, in-process mutants and refusal/CLI controls, so it guards the new lifter. - No other open or merged PR covers FNSTENV/FLDENV/FNSAVE/FRSTOR/FDECSTP lifting. - Not a startup-path change, no game claim. Commands executed locally (Linux): - `python3 -I -m py_compile tools/cpu_x87_env_aot.py tests/cpu/x87_env_aot_check.py` ok - `python3 tests/docs_links_check.py` ok - `python3 tests/bidi_controls_check.py` ok - `git diff --check origin/main...HEAD` clean The differential and mutant checks need the Windows source build; they are covered by the Win2025 run, which I will report separately. AI-assisted; commands listed were executed locally.
tedin7 commented 2026-11-26 04:04:36 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by tedin7 on 2026-11-26T03:15:43Z.


Win2025 (WARP) result for head e59e5de9: the new test fails, so this is not ready to merge.

cpu_aot_x87_env (dev build) fails in check_differential:

AssertionError: fdecstp_wrap_top_0: fop mismatch nat=0x1f6 lif=0x3ab
tests/cpu/x87_env_aot_check.py:437 -> assert_env28_deterministic (line 390)

The translator and refusal controls pass (10 sequences accepted, 44 rejection controls). The mismatch is the saved FOP field in the FNSTENV image after FDECSTP when TOP wraps: the native CPU and the lifted code store different values. Either the lifter should model the last-opcode field as the hardware does, or the check should exclude fop for this case (like it already does for fip via check_fip=False). Release was not reached.

Command: python3 x2w_pipe.py win2025 2681 --wait 7200 --keep-release --regex cpu_aot_x87_env

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7181546255 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2681#issuecomment-7181546255). Originally posted by [tedin7](https://github.com/tedin7) on 2026-11-26T03:15:43Z. --- Win2025 (WARP) result for head e59e5de9: the new test fails, so this is not ready to merge. `cpu_aot_x87_env` (dev build) fails in `check_differential`: AssertionError: fdecstp_wrap_top_0: fop mismatch nat=0x1f6 lif=0x3ab tests/cpu/x87_env_aot_check.py:437 -> assert_env28_deterministic (line 390) The translator and refusal controls pass (10 sequences accepted, 44 rejection controls). The mismatch is the saved FOP field in the FNSTENV image after FDECSTP when TOP wraps: the native CPU and the lifted code store different values. Either the lifter should model the last-opcode field as the hardware does, or the check should exclude `fop` for this case (like it already does for `fip` via `check_fip=False`). Release was not reached. Command: `python3 x2w_pipe.py win2025 2681 --wait 7200 --keep-release --regex cpu_aot_x87_env` AI-assisted; commands listed were executed locally.
MasterDomino commented 2026-11-26 06:45:06 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by MasterDomino on 2026-11-26T06:45:06Z.

Review: CHANGES_REQUESTED


AMD result for head e59e5de9.

The new test fails on AMD. ctest --preset dev --no-tests=error -R '^cpu_aot_x87_env$' -V fails on an AMD Ryzen 7 9800X3D (Windows 11 build 26300) with the same assertion as the Win2025 run: fdecstp_wrap_top_0: fop mismatch nat=0x1f6 lif=0x3ab (check.py:437). The failure is deterministic.

  • Native, after FLDENV then FDECSTP: FOP=0x1F6 (the FDECSTP opcode), FIP = the low 32 bits of RIP, and FCS=0x33. FDP and FDS are unchanged.
  • Lifted: it keeps the loaded FOP/FIP/FCS.
  • So: this AMD part updates FOP on a masked non-control instruction, the Intel i9-14900HX doesn't, and the Xeon VM does.
  • What to do: follow @R0Y00's request. Name the FOP/FIP/FCS profile, keep the FLDENV/FRSTOR round-trip strict, and compare FDECSTP's FOP only under a stated profile, with a control that tells the profiles apart.
  • Everything else matched: as a diagnostic, with only the FDECSTP FOP fields excluded, every other case matched here (129 cases, 12 MXCSR checks, 7 altered-build controls).

Further issues, each measured locally:

  1. Entry state. The lifted function starts from FNINIT state (CW 0x037F), but the lifter accepts reads before any init. fnstcw word ptr [r8]; ret lifts to a store of 0x037F, while the native code stores 0x027F: the Windows x64 default, which the existing x87 profile also fixes (cpu_aot_x87_fnstcw). Please refuse reads of CW, SW or the environment before fninit/fldcw/fldenv/frstor, or model 0x027F.

  2. Unmasked exceptions. The CW can come from memory (fldcw [rdx], FLDENV, FRSTOR), so the claim that masked exceptions can't raise #MF isn't proven.

    • With CW=0x037E and an f64 SNaN, native op_fstenv_pushed raises a float invalid-operation exception, and the lifted export returns normally.
    • With CW=0x037E and SW=0x0081, native op_frstor_fdecstp_fnsave raises at FDECSTP, and the lifted export returns.

    Please require a statically masked CW (and SW.ES=0 after FLDENV/FRSTOR), or refuse these cases.

  3. FNINIT doesn't clear the register contents, only the tags. After a call that leaves 1.0 in a physical register, op_fdecstp_wrap_env with TW=0xCFFF gives native 0xCFFF and lifted 0xDFFF. The tw == 0xF7FF assertion and its comment ("Physical regs were zeroed by fninit") only hold because of what ran earlier in the process.

  4. Undefined condition codes. The SDM leaves C0/C2/C3 undefined after FDECSTP, and C0-C3 undefined after FSTENV/FNSTENV. The current x87 profile refuses readers of undefined condition codes. Please refuse them here too, or state the measured profile.

  5. FCS and FDS are never compared. Native AMD stores FCS=0x33 after a non-control instruction.

  6. Docs. There's no docs/experiments.md entry, and the cpu_x87_environment_controls paragraph still says no native fixture exists for these forms.

Neighbours and mutants:

  • ctest --preset dev -R '^cpu_': 305 passed, 1 skipped (cpu_aot_sysdesc), 1 failed (this test).
  • With the FDECSTP FOP fields excluded, each of these mutations is caught: the FNSTENV mask, the FRSTOR slot order (physical instead of logical), the tag recompute, and the FDECSTP C1 clear.

AI-assisted; commands listed were executed locally.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6069643973 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2681#pullrequestreview-6069643973). Originally posted by [MasterDomino](https://github.com/MasterDomino) on 2026-11-26T06:45:06Z. **Review:** CHANGES_REQUESTED --- AMD result for head `e59e5de9`. **The new test fails on AMD.** `ctest --preset dev --no-tests=error -R '^cpu_aot_x87_env$' -V` fails on an AMD Ryzen 7 9800X3D (Windows 11 build 26300) with the same assertion as the Win2025 run: `fdecstp_wrap_top_0: fop mismatch nat=0x1f6 lif=0x3ab` (`check.py:437`). The failure is deterministic. - **Native, after FLDENV then FDECSTP:** FOP=0x1F6 (the FDECSTP opcode), FIP = the low 32 bits of RIP, and FCS=0x33. FDP and FDS are unchanged. - **Lifted:** it keeps the loaded FOP/FIP/FCS. - **So:** this AMD part updates FOP on a masked non-control instruction, the Intel i9-14900HX doesn't, and the Xeon VM does. - **What to do:** follow @R0Y00's request. Name the FOP/FIP/FCS profile, keep the FLDENV/FRSTOR round-trip strict, and compare FDECSTP's FOP only under a stated profile, with a control that tells the profiles apart. - **Everything else matched:** as a diagnostic, with only the FDECSTP FOP fields excluded, every other case matched here (129 cases, 12 MXCSR checks, 7 altered-build controls). **Further issues, each measured locally:** 1. **Entry state.** The lifted function starts from FNINIT state (CW 0x037F), but the lifter accepts reads before any init. `fnstcw word ptr [r8]; ret` lifts to a store of 0x037F, while the native code stores 0x027F: the Windows x64 default, which the existing x87 profile also fixes (`cpu_aot_x87_fnstcw`). Please refuse reads of CW, SW or the environment before `fninit`/`fldcw`/`fldenv`/`frstor`, or model 0x027F. 2. **Unmasked exceptions.** The CW can come from memory (`fldcw [rdx]`, FLDENV, FRSTOR), so the claim that masked exceptions can't raise #MF isn't proven. - With CW=0x037E and an f64 SNaN, native `op_fstenv_pushed` raises a float invalid-operation exception, and the lifted export returns normally. - With CW=0x037E and SW=0x0081, native `op_frstor_fdecstp_fnsave` raises at FDECSTP, and the lifted export returns. Please require a statically masked CW (and SW.ES=0 after FLDENV/FRSTOR), or refuse these cases. 3. **FNINIT doesn't clear the register contents, only the tags.** After a call that leaves 1.0 in a physical register, `op_fdecstp_wrap_env` with TW=0xCFFF gives native 0xCFFF and lifted 0xDFFF. The `tw == 0xF7FF` assertion and its comment ("Physical regs were zeroed by fninit") only hold because of what ran earlier in the process. 4. **Undefined condition codes.** The SDM leaves C0/C2/C3 undefined after FDECSTP, and C0-C3 undefined after FSTENV/FNSTENV. The current x87 profile refuses readers of undefined condition codes. Please refuse them here too, or state the measured profile. 5. **FCS and FDS are never compared.** Native AMD stores FCS=0x33 after a non-control instruction. 6. **Docs.** There's no `docs/experiments.md` entry, and the `cpu_x87_environment_controls` paragraph still says no native fixture exists for these forms. **Neighbours and mutants:** - `ctest --preset dev -R '^cpu_'`: 305 passed, 1 skipped (`cpu_aot_sysdesc`), 1 failed (this test). - With the FDECSTP FOP fields excluded, each of these mutations is caught: the FNSTENV mask, the FRSTOR slot order (physical instead of logical), the tag recompute, and the FDECSTP C1 clear. AI-assisted; commands listed were executed locally.
R0Y00 commented 2026-11-26 07:00:27 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-26T06:23:49Z.


On the same e59e5de9 tree, Windows 11 build 26200 Release on an Intel i9-14900HX passes cpu_aot_x87_env, including 129 differential cases, 12 MXCSR isolation checks and the mutations. The earlier Win2025 native FOP mismatch remains a real cross-host difference. Intel documents that the saved FOP depends on fopcode compatibility mode and an unmasked exception in the default mode. A raw FOP comparison after a masked, non-control instruction is therefore insufficient to establish the portable behavior. Please specify which metadata profile this lifter implements and preserve strict comparisons for the architectural state. Separate the explicit FLDENV/FRSTOR metadata round-trip from native FOP produced by FDECSTP, and keep a distinguishing control for whichever FOP behavior the profile guarantees.

Intel SDM, Volume 1, x87 FPU Opcode Register

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7184388617 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2681#issuecomment-7184388617). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-26T06:23:49Z. --- On the same e59e5de9 tree, Windows 11 build 26200 Release on an Intel i9-14900HX passes cpu_aot_x87_env, including 129 differential cases, 12 MXCSR isolation checks and the mutations. The earlier Win2025 native FOP mismatch remains a real cross-host difference. Intel documents that the saved FOP depends on fopcode compatibility mode and an unmasked exception in the default mode. A raw FOP comparison after a masked, non-control instruction is therefore insufficient to establish the portable behavior. Please specify which metadata profile this lifter implements and preserve strict comparisons for the architectural state. Separate the explicit FLDENV/FRSTOR metadata round-trip from native FOP produced by FDECSTP, and keep a distinguishing control for whichever FOP behavior the profile guarantees. [Intel SDM, Volume 1, x87 FPU Opcode Register](https://cdrdv2-public.intel.com/789574/253665-sdm-vol-1.pdf)
Ammmae0x commented 2026-11-26 16:03:32 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Ammmae0x on 2026-11-26T16:03:32Z.


Updated PR #2681 (commit 520b61c0) to address the Win2025, @R0Y00, and @MasterDomino review findings:

  1. Metadata profile & FCS/FDS checks: Documented the preserved-metadata profile in tools/cpu_x87_env_aot.py, tests/cpu/x87_env_aot_check.py, and docs/experiments.md. Separated strict 28-byte FLDENV/FRSTOR round-trips (including fcs and fds in assert_env28_deterministic) from FDECSTP/FLD/FSTP native comparisons (where Intel default mode preserves FOP/FCS while AMD/compat parts update FOP=0x1F6/FCS=0x33), strictly asserting preserved-metadata on lifted outputs and adding two compiled C++ profile-distinguishing mutant controls (mut_fdecstp_updates_fop_wrap, mut_fdecstp_updates_fop_frstor).
  2. Entry state & undefined condition codes: Statically rejected reads of FCW (FNSTCW) before FNINIT/FLDCW/FLDENV/FRSTOR, reads of FSW/env (FNSTSW/FNSTENV/FNSAVE/FDECSTP) before FNINIT/FLDENV/FRSTOR, and FSW readers after FNSTENV/FSTENV before re-init (documenting the measured FDECSTP C1=0 / preserved C0,C2,C3 profile). Defaulted X87State.cw to 0x027F.
  3. Masked-exception & FNINIT register-state safety: Added runtime x87_trap() (__ud2()) via x87_check_mf before WAIT/FDECSTP/FLD*/FSTP* and on SW.ES!=0 or unmasked pending exceptions in FLDENV/FRSTOR. Removed false register zeroing from x87_fninit and tracked regs_defined so FLDENV with non-empty FTW on uninitialized physical registers traps cleanly (verified with 4 0xC000001D trap controls plus tw=0xFFFF after leaving 1.0 natively).
  4. Compiled C++ mutants & docs: Added cpu_x87_env_aot_mutants (8 compiled C++ mutant controls) and updated docs/experiments.md (both cpu_x87_environment_controls and the new cpu_aot_x87_env entry).

Verified on Windows 11 x64 (13th Gen Intel Core i7-13620H) on both --preset dev and --preset release (ctest -R "^cpu_aot_x87_env$" -V): 10 accepted, 54 rejection controls, 130 differential/roundtrip/altered cases (native FDECSTP FOP=preserved), 4 runtime trap controls, 12 MXCSR isolation checks, 8 compiled C++ mutants, and 7 altered-build controls passed, plus docs_links_check.py, bidi_controls_check.py, and form_coverage_check.py (all exit 0).

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7197122690 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2681#issuecomment-7197122690). Originally posted by [Ammmae0x](https://github.com/Ammmae0x) on 2026-11-26T16:03:32Z. --- Updated PR #2681 (commit `520b61c0`) to address the Win2025, @R0Y00, and @MasterDomino review findings: 1. **Metadata profile & FCS/FDS checks**: Documented the `preserved-metadata` profile in `tools/cpu_x87_env_aot.py`, `tests/cpu/x87_env_aot_check.py`, and `docs/experiments.md`. Separated strict 28-byte `FLDENV`/`FRSTOR` round-trips (including `fcs` and `fds` in `assert_env28_deterministic`) from `FDECSTP`/`FLD`/`FSTP` native comparisons (where Intel default mode preserves `FOP`/`FCS` while AMD/compat parts update `FOP=0x1F6`/`FCS=0x33`), strictly asserting `preserved-metadata` on lifted outputs and adding two compiled C++ profile-distinguishing mutant controls (`mut_fdecstp_updates_fop_wrap`, `mut_fdecstp_updates_fop_frstor`). 2. **Entry state & undefined condition codes**: Statically rejected reads of `FCW` (`FNSTCW`) before `FNINIT`/`FLDCW`/`FLDENV`/`FRSTOR`, reads of `FSW`/env (`FNSTSW`/`FNSTENV`/`FNSAVE`/`FDECSTP`) before `FNINIT`/`FLDENV`/`FRSTOR`, and `FSW` readers after `FNSTENV`/`FSTENV` before re-init (documenting the measured `FDECSTP` `C1=0` / preserved `C0,C2,C3` profile). Defaulted `X87State.cw` to `0x027F`. 3. **Masked-exception & `FNINIT` register-state safety**: Added runtime `x87_trap()` (`__ud2()`) via `x87_check_mf` before `WAIT`/`FDECSTP`/`FLD*`/`FSTP*` and on `SW.ES!=0` or unmasked pending exceptions in `FLDENV`/`FRSTOR`. Removed false register zeroing from `x87_fninit` and tracked `regs_defined` so `FLDENV` with non-empty `FTW` on uninitialized physical registers traps cleanly (verified with 4 `0xC000001D` trap controls plus `tw=0xFFFF` after leaving `1.0` natively). 4. **Compiled C++ mutants & docs**: Added `cpu_x87_env_aot_mutants` (8 compiled C++ mutant controls) and updated `docs/experiments.md` (both `cpu_x87_environment_controls` and the new `cpu_aot_x87_env` entry). Verified on Windows 11 x64 (13th Gen Intel Core i7-13620H) on both `--preset dev` and `--preset release` (`ctest -R "^cpu_aot_x87_env$" -V`): 10 accepted, 54 rejection controls, 130 differential/roundtrip/altered cases (native `FDECSTP` FOP=`preserved`), 4 runtime trap controls, 12 MXCSR isolation checks, 8 compiled C++ mutants, and 7 altered-build controls passed, plus `docs_links_check.py`, `bidi_controls_check.py`, and `form_coverage_check.py` (all exit 0). AI-assisted.
pigalot commented 2026-11-27 22:55:30 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by pigalot on 2026-11-27T22:55:30Z.

Review: APPROVED


Independently reviewed 520b61c0 integrated over main 4b0350ea (tree d0beff29), on the AMD part that failed on e59e5de9. The merge is clean and git diff --cached --check origin/main is clean.

AMD run on the current head. The host is an AMD Ryzen 7 9800X3D on Windows 11 build 26200, the same CPU model as MasterDomino's failing run.

cmake --build --preset <dev|release> --target cpu_x87_env_aot_original cpu_x87_env_aot_original_lifted cpu_x87_env_aot_altered cpu_x87_env_aot_altered_lifted cpu_x87_env_aot_mutants
ctest --test-dir out/build/<dev|release> --no-tests=error -j 1 -V -R '^cpu_aot_x87_env$'
ctest --test-dir out/build/<dev|release> --no-tests=error -j 4 -R '^cpu_(aot_x87|x87)'

Both presets pass, with no skips:

  • 10 x87 env sequences accepted; 54 rejection controls passed;
  • 130 differential/state/roundtrip/altered cases matched (native FDECSTP FOP=updated(fop=0x1f6,fcs=0x33)); 4 runtime trap controls passed; 12 MXCSR DAZ/FTZ isolation checks passed; 8 compiled C++ mutant controls + 7 altered-build controls caught;
  • all 31 cpu_(aot_x87|x87) tests pass.

The check classifies this host's FDECSTP as the updating profile, where the i7-13620H in the description reports preserved. The lifted code is held to preserved-metadata in both cases. form_coverage_check, docs_links_check (121 files, 625 links) and bidi_controls_check pass.

Earlier findings, checked at this head.

  • R0Y00 / MasterDomino, FOP profile: addressed. The lifter implements a named preserved-metadata profile. The FLDENV/FRSTOR round-trips compare fcs, fop, fdp and fds strictly. FDECSTP's native FOP is only classified, and must be one consistent profile per host. mut_fdecstp_updates_fop_wrap and mut_fdecstp_updates_fop_frstor tell the profiles apart.
  • MasterDomino 1, entry state: addressed. fnstcw [r8]; ret and the SW/environment reads before init are refused (fnstcw_before_init and its siblings), and X87State.cw defaults to 0x027F.
  • MasterDomino 2, unmasked exceptions: addressed by a runtime trap (__ud2). op_fstenv_pushed with CW=0x037E and an f64 SNaN, and op_frstor_fdecstp_fnsave with CW=0x037E and SW=0x0081, now raise 0xC000001D before writing output. Native code raises the float exception instead, so the code differs, but neither returns normally.
  • MasterDomino 3, FNINIT and register contents: addressed. x87_fninit no longer zeroes registers. FLDENV with a non-empty tag on a register this function never defined traps (uninit_reg_fldenv_tw_cfff).
  • MasterDomino 4, undefined condition codes: addressed. FSW readers after FNSTENV/FSTENV are refused. The FDECSTP case compares C0/C2/C3 strictly (input SW 0x4501), and it matches on this AMD part as well as on the Intel hosts.
  • MasterDomino 5, FCS/FDS never compared: the comparison is now in assert_env28_deterministic. FDS is still not pinned, though; see the first note below.
  • MasterDomino 6, docs: addressed. There is a cpu_aot_x87_env entry, and the cpu_x87_environment_controls paragraph is updated.

Mutants of my own in tools/cpu_x87_env_aot.py. Each was applied alone, the lifted and mutant targets rebuilt in dev, the test run, and the source restored afterwards (git diff --quiet clean).

Mutant Result
x87_check_mf never traps killed
FLDENV uninitialised-register trap removed killed
fnstcw-before-init refusal removed killed
FNSTENV no longer masks FCW[5:0] killed
fcs stored as 0 killed
FDECSTP no longer clears C1 killed
fds stored as 0 survives
FRSTOR's SW.ES / unmasked-pending trap removed survives
X87State.cw default 0x027F → 0x037F survives, equivalent: every read of CW before init is refused, and both values mask all six exceptions

Non-blocking.

  1. FDS round-trip unpinned. Every input environment uses fds=0. A probe through the PR's exports gives the same FDS from native and lifted op_fldenv_fnstenv: fcs=0x1234 fds=0x5678, fds=0x2b and fcs=0x33 round-trip unchanged. One round-trip input with a non-zero FDS would kill the surviving mutant.
  2. The FLDENV/FRSTOR traps are stricter than the hardware. The SDM raises a pending unmasked exception only at the next waiting instruction. So native op_fldenv_fnstenv and op_frstor_fnsave with SW.ES=1 return normally, while the lifted code traps. This is what MasterDomino asked for ("SW.ES=0 after FLDENV/FRSTOR"). The only FRSTOR trap case is followed by FDECSTP, which traps anyway, so the FRSTOR check itself is unpinned. A sentence in the profile docs saying that these traps go beyond the hardware would make this explicit.

Verdict: approve on 520b61c0. MasterDomino's changes request on e59e5de9 still stands, so I am not merging.

Environment: AMD Ryzen 7 9800X3D, Windows 11 25H2 build 26200.9974; MSVC 19.52.37029; Python 3.12.10. No GPU tests ran.
CI: Build and test on Windows, Assemble and translate gfx1013 fixtures and Run platform-independent Python checks on Linux pass on 520b61c0.

This reply was AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6094101002 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2681#pullrequestreview-6094101002). Originally posted by [pigalot](https://github.com/pigalot) on 2026-11-27T22:55:30Z. **Review:** APPROVED --- Independently reviewed `520b61c0` integrated over `main` `4b0350ea` (tree `d0beff29`), on the AMD part that failed on `e59e5de9`. The merge is clean and `git diff --cached --check origin/main` is clean. **AMD run on the current head.** The host is an AMD Ryzen 7 9800X3D on Windows 11 build 26200, the same CPU model as MasterDomino's failing run. ```powershell cmake --build --preset <dev|release> --target cpu_x87_env_aot_original cpu_x87_env_aot_original_lifted cpu_x87_env_aot_altered cpu_x87_env_aot_altered_lifted cpu_x87_env_aot_mutants ctest --test-dir out/build/<dev|release> --no-tests=error -j 1 -V -R '^cpu_aot_x87_env$' ctest --test-dir out/build/<dev|release> --no-tests=error -j 4 -R '^cpu_(aot_x87|x87)' ``` Both presets pass, with no skips: - `10 x87 env sequences accepted; 54 rejection controls passed`; - `130 differential/state/roundtrip/altered cases matched (native FDECSTP FOP=updated(fop=0x1f6,fcs=0x33)); 4 runtime trap controls passed; 12 MXCSR DAZ/FTZ isolation checks passed; 8 compiled C++ mutant controls + 7 altered-build controls caught`; - all 31 `cpu_(aot_x87|x87)` tests pass. The check classifies this host's FDECSTP as the updating profile, where the i7-13620H in the description reports `preserved`. The lifted code is held to `preserved-metadata` in both cases. `form_coverage_check`, `docs_links_check` (121 files, 625 links) and `bidi_controls_check` pass. **Earlier findings, checked at this head.** - **R0Y00 / MasterDomino, FOP profile:** addressed. The lifter implements a named `preserved-metadata` profile. The FLDENV/FRSTOR round-trips compare `fcs`, `fop`, `fdp` and `fds` strictly. FDECSTP's native FOP is only classified, and must be one consistent profile per host. `mut_fdecstp_updates_fop_wrap` and `mut_fdecstp_updates_fop_frstor` tell the profiles apart. - **MasterDomino 1, entry state:** addressed. `fnstcw [r8]; ret` and the SW/environment reads before init are refused (`fnstcw_before_init` and its siblings), and `X87State.cw` defaults to `0x027F`. - **MasterDomino 2, unmasked exceptions:** addressed by a runtime trap (`__ud2`). `op_fstenv_pushed` with CW=0x037E and an f64 SNaN, and `op_frstor_fdecstp_fnsave` with CW=0x037E and SW=0x0081, now raise `0xC000001D` before writing output. Native code raises the float exception instead, so the code differs, but neither returns normally. - **MasterDomino 3, FNINIT and register contents:** addressed. `x87_fninit` no longer zeroes registers. FLDENV with a non-empty tag on a register this function never defined traps (`uninit_reg_fldenv_tw_cfff`). - **MasterDomino 4, undefined condition codes:** addressed. FSW readers after FNSTENV/FSTENV are refused. The FDECSTP case compares C0/C2/C3 strictly (input SW `0x4501`), and it matches on this AMD part as well as on the Intel hosts. - **MasterDomino 5, FCS/FDS never compared:** the comparison is now in `assert_env28_deterministic`. FDS is still not pinned, though; see the first note below. - **MasterDomino 6, docs:** addressed. There is a `cpu_aot_x87_env` entry, and the `cpu_x87_environment_controls` paragraph is updated. **Mutants of my own** in `tools/cpu_x87_env_aot.py`. Each was applied alone, the lifted and mutant targets rebuilt in `dev`, the test run, and the source restored afterwards (`git diff --quiet` clean). | Mutant | Result | |---|---| | `x87_check_mf` never traps | killed | | FLDENV uninitialised-register trap removed | killed | | `fnstcw`-before-init refusal removed | killed | | FNSTENV no longer masks `FCW[5:0]` | killed | | `fcs` stored as 0 | killed | | FDECSTP no longer clears C1 | killed | | `fds` stored as 0 | survives | | FRSTOR's SW.ES / unmasked-pending trap removed | survives | | `X87State.cw` default `0x027F` → `0x037F` | survives, equivalent: every read of CW before init is refused, and both values mask all six exceptions | **Non-blocking.** 1. **FDS round-trip unpinned.** Every input environment uses `fds=0`. A probe through the PR's exports gives the same FDS from native and lifted `op_fldenv_fnstenv`: `fcs=0x1234 fds=0x5678`, `fds=0x2b` and `fcs=0x33` round-trip unchanged. One round-trip input with a non-zero FDS would kill the surviving mutant. 2. **The FLDENV/FRSTOR traps are stricter than the hardware.** The SDM raises a pending unmasked exception only at the next waiting instruction. So native `op_fldenv_fnstenv` and `op_frstor_fnsave` with SW.ES=1 return normally, while the lifted code traps. This is what MasterDomino asked for ("SW.ES=0 after FLDENV/FRSTOR"). The only FRSTOR trap case is followed by FDECSTP, which traps anyway, so the FRSTOR check itself is unpinned. A sentence in the profile docs saying that these traps go beyond the hardware would make this explicit. **Verdict:** approve on `520b61c0`. MasterDomino's changes request on `e59e5de9` still stands, so I am not merging. Environment: AMD Ryzen 7 9800X3D, Windows 11 25H2 build 26200.9974; MSVC 19.52.37029; Python 3.12.10. No GPU tests ran. CI: `Build and test on Windows`, `Assemble and translate gfx1013 fixtures` and `Run platform-independent Python checks on Linux` pass on `520b61c0`. This reply was AI-assisted.
JohnConnorNPC commented 2026-11-28 08:18:19 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-28T08:18:19Z.


Review of head 520b61c0, trial-merged into main 1f07b2c1 (git merge-tree --write-tree rc=0, no conflicts). Thanks for the thorough update. The FOP profile, the entry-state refusals, the #MF trap, the FNINIT register handling and the docs all look addressed to me. There are two things I'd ask you to fix before this merges.

1. The FCS/FDS round-trip depends on the host (blocking). The lifter stores the loaded st.fcs and st.fds, and the docs say that the fldenv→fnstenv and frstor→fnsave round-trips compare fcs and fds strictly. But every check input uses zero: grep -oE 'fcs=[0-9a-fx]+|fds=[0-9a-fx]+' tests/cpu/x87_env_aot_check.py | sort | uniq -c → 7 fcs=0, 7 fds=0. So the comparison can't see a difference.
I ran a native probe on an Intel i7-10700KF (Linux x86-64, gcc inline asm fninit; fldenv m28; fnstenv m28; fninit). It reports CPUID.(EAX=7,ECX=0):EBX[13]=1 (FCS/FDS deprecated). Loading fcs=0x1234 fds=0x5678 gives fcs=0 fds=0 back, while fip=0x11223344, fop=0x155 and fdp=0x55667788 come back unchanged. The AMD review above saw these values preserved.
That means the non-zero FDS input suggested above, which would kill the surviving fds mutant, would fail on Intel parts like this one. Could you treat FCS/FDS the way you treat FOP? Classify the host with a non-zero-selector round-trip, hold the lifted code to the named profile, and add a control that tells the two behaviours apart. The other option is to narrow the docs claim and refuse non-zero selectors.

2. C0–C3 loaded by FLDENV/FRSTOR are accepted through WAIT, FLDCW, FNSTCW and FNSTSW (should fix). On the merged tree, lift_code accepts fldenv; wait; fnstenv, fldenv; fldcw; fnstenv, fldenv; fnstcw; fnstenv, frstor; fnstsw ax; fnsave and frstor; wait; fnsave. The SDM leaves C0–C3 undefined after all four instructions. tools/x87_lower.py rejects these sequences ("including WAIT ..., FNSTCW and FNSTSW itself"), and the edited cpu_x87_environment_controls paragraph still says that fstenv and fsave are rejected.
The same Intel host preserves C0–C3 (sw=0x4700 in gives sw=0x4700 out for all four), but no fixture case covers these paths. Please either state that measured profile and add one FLDENV→WAIT→FNSTENV case with C0–C3 set, or mark C0–C3 unknown after these four instructions.

A smaller point: the docs call the preserved FOP "Intel default fopcode compatibility behavior". In that mode the SDM only defines FOP after an unmasked exception, so "measured on the i7-13620H" would be more accurate.

On the merged tree, these pass: docs_links_check, bidi_controls_check, form_coverage_check and the translator controls (10 x87 env sequences accepted; 54 rejection controls passed). Removing cc_known = False after FNSTENV makes the translator check fail (translator accepted rejected sequence). CI is green, but the Windows job runs ctest --preset pr (100% tests passed out of 40) and doesn't include cpu_aot_x87_env. I didn't run the native/lifted DLL differential here, because I have no Windows host.

This comment was AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7236496118 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2681#issuecomment-7236496118). Originally posted by [JohnConnorNPC](https://github.com/JohnConnorNPC) on 2026-11-28T08:18:19Z. --- Review of head `520b61c0`, trial-merged into `main` `1f07b2c1` (`git merge-tree --write-tree` rc=0, no conflicts). Thanks for the thorough update. The FOP profile, the entry-state refusals, the #MF trap, the FNINIT register handling and the docs all look addressed to me. There are two things I'd ask you to fix before this merges. **1. The FCS/FDS round-trip depends on the host (blocking).** The lifter stores the loaded `st.fcs` and `st.fds`, and the docs say that the `fldenv`→`fnstenv` and `frstor`→`fnsave` round-trips compare `fcs` and `fds` strictly. But every check input uses zero: `grep -oE 'fcs=[0-9a-fx]+|fds=[0-9a-fx]+' tests/cpu/x87_env_aot_check.py | sort | uniq -c` → `7 fcs=0`, `7 fds=0`. So the comparison can't see a difference. I ran a native probe on an Intel i7-10700KF (Linux x86-64, gcc inline asm `fninit; fldenv m28; fnstenv m28; fninit`). It reports CPUID.(EAX=7,ECX=0):EBX[13]=1 (FCS/FDS deprecated). Loading `fcs=0x1234 fds=0x5678` gives `fcs=0 fds=0` back, while `fip=0x11223344`, `fop=0x155` and `fdp=0x55667788` come back unchanged. The AMD review above saw these values preserved. That means the non-zero FDS input suggested above, which would kill the surviving `fds` mutant, would fail on Intel parts like this one. Could you treat FCS/FDS the way you treat FOP? Classify the host with a non-zero-selector round-trip, hold the lifted code to the named profile, and add a control that tells the two behaviours apart. The other option is to narrow the docs claim and refuse non-zero selectors. **2. C0–C3 loaded by FLDENV/FRSTOR are accepted through WAIT, FLDCW, FNSTCW and FNSTSW (should fix).** On the merged tree, `lift_code` accepts `fldenv; wait; fnstenv`, `fldenv; fldcw; fnstenv`, `fldenv; fnstcw; fnstenv`, `frstor; fnstsw ax; fnsave` and `frstor; wait; fnsave`. The SDM leaves C0–C3 undefined after all four instructions. `tools/x87_lower.py` rejects these sequences ("including WAIT ..., FNSTCW and FNSTSW itself"), and the edited `cpu_x87_environment_controls` paragraph still says that `fstenv` and `fsave` are rejected. The same Intel host preserves C0–C3 (`sw=0x4700` in gives `sw=0x4700` out for all four), but no fixture case covers these paths. Please either state that measured profile and add one FLDENV→WAIT→FNSTENV case with C0–C3 set, or mark C0–C3 unknown after these four instructions. A smaller point: the docs call the preserved FOP "Intel default fopcode compatibility behavior". In that mode the SDM only defines FOP after an unmasked exception, so "measured on the i7-13620H" would be more accurate. On the merged tree, these pass: `docs_links_check`, `bidi_controls_check`, `form_coverage_check` and the translator controls (`10 x87 env sequences accepted; 54 rejection controls passed`). Removing `cc_known = False` after FNSTENV makes the translator check fail (`translator accepted rejected sequence`). CI is green, but the Windows job runs `ctest --preset pr` (`100% tests passed out of 40`) and doesn't include `cpu_aot_x87_env`. I didn't run the native/lifted DLL differential here, because I have no Windows host. This comment was AI-assisted.
Ammmae0x commented 2026-11-28 11:12:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Ammmae0x on 2026-11-28T11:12:16Z.


Addressed all items from JohnConnorNPC and pigalot in 90ce1e69 (merged with upstream/main ec71c290):

  1. Host FCS/FDS round-trip profile (tests/cpu/x87_env_aot_check.py):
    • Updated op_fldenv_fnstenv, op_fldenv_wait_fnstenv, op_frstor_fnsave, op_fdecstp_wrap_env, and op_frstor_fdecstp_fnsave to supply non-zero FCS/FDS selectors (0x1234/0x5678, 0x002B/0x0033).
    • The lifted preserved-metadata model strictly asserts FCS/FDS preservation, while _classify_fcs_fds classifies native hardware consistently (preserved vs deprecated-zero on CPUID.(EAX=7,ECX=0):EBX[13]=1 parts).
    • Added mut_fldenv_zero_fcs_fds to MUTANT_SPECS so zeroing FCS/FDS is caught even on deprecated-zero hosts.
  2. Measured x64 status profile (C0..C3 across WAIT/FLDCW/FNSTCW/FNSTSW AX) & eager FRSTOR trap:
    • Added op_fldenv_wait_fnstenv (tests/cpu/x87_env_aot.asm, .def, CMakeLists.txt) verifying SW=0x4700 (C0..C3) is preserved across FLDENV -> WAIT -> FNSTENV.
    • Documented the measured WAIT/FLDCW/FNSTCW/FNSTSW AX C0..C3 preservation profile and eager FLDENV/FRSTOR #MF/SW.ES trap behavior in tools/cpu_x87_env_aot.py and docs/experiments.md (including measured on the i7-13620H wording).
    • Added sw_es_frstor on op_frstor_fnsave directly in check_runtime_traps (without FDECSTP).

Verified on Windows in both dev and release (/O2): cpu_aot_x87_env & cpu_x87_environment_controls passed (12 accepted, 54 rejections, 132 differential cases with FOP=preserved and FCS/FDS=deprecated-zero, 5 runtime traps, 12 MXCSR checks, 9 C++ mutants, 7 altered-build controls), form_coverage_check.py / docs_links_check.py / bidi_controls_check.py exited 0, and 3/3 spot-mutations were caught.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7238395305 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2681#issuecomment-7238395305). Originally posted by [Ammmae0x](https://github.com/Ammmae0x) on 2026-11-28T11:12:16Z. --- Addressed all items from JohnConnorNPC and pigalot in `90ce1e69` (merged with `upstream/main` `ec71c290`): 1. **Host `FCS`/`FDS` round-trip profile (`tests/cpu/x87_env_aot_check.py`)**: - Updated `op_fldenv_fnstenv`, `op_fldenv_wait_fnstenv`, `op_frstor_fnsave`, `op_fdecstp_wrap_env`, and `op_frstor_fdecstp_fnsave` to supply non-zero `FCS`/`FDS` selectors (`0x1234`/`0x5678`, `0x002B`/`0x0033`). - The lifted `preserved-metadata` model strictly asserts `FCS`/`FDS` preservation, while `_classify_fcs_fds` classifies native hardware consistently (`preserved` vs `deprecated-zero` on `CPUID.(EAX=7,ECX=0):EBX[13]=1` parts). - Added `mut_fldenv_zero_fcs_fds` to `MUTANT_SPECS` so zeroing `FCS`/`FDS` is caught even on `deprecated-zero` hosts. 2. **Measured x64 status profile (`C0..C3` across `WAIT`/`FLDCW`/`FNSTCW`/`FNSTSW AX`) & eager `FRSTOR` trap**: - Added `op_fldenv_wait_fnstenv` (`tests/cpu/x87_env_aot.asm`, `.def`, `CMakeLists.txt`) verifying `SW=0x4700` (`C0..C3`) is preserved across `FLDENV -> WAIT -> FNSTENV`. - Documented the measured `WAIT`/`FLDCW`/`FNSTCW`/`FNSTSW AX` `C0..C3` preservation profile and eager `FLDENV`/`FRSTOR` `#MF`/`SW.ES` trap behavior in `tools/cpu_x87_env_aot.py` and `docs/experiments.md` (including `measured on the i7-13620H` wording). - Added `sw_es_frstor` on `op_frstor_fnsave` directly in `check_runtime_traps` (without `FDECSTP`). Verified on Windows in both `dev` and `release` (`/O2`): `cpu_aot_x87_env` & `cpu_x87_environment_controls` passed (`12` accepted, `54` rejections, `132` differential cases with `FOP=preserved` and `FCS/FDS=deprecated-zero`, `5` runtime traps, `12` MXCSR checks, `9` C++ mutants, `7` altered-build controls), `form_coverage_check.py` / `docs_links_check.py` / `bidi_controls_check.py` exited 0, and 3/3 spot-mutations were caught. AI-assisted.
pigalot commented 2026-11-28 11:22:47 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by pigalot on 2026-11-28T11:22:47Z.

Review: APPROVED


Retested 90ce1e69 integrated over main ee3347d3 (tree c9238d3d). The merge is clean and git diff --cached --check origin/main is clean. The author's merge of main (60b5a24a) has an empty git show --remerge-diff, so I read 60b5a24a..90ce1e69 as the change since my approval on 520b61c0.

Run on the AMD host. AMD Ryzen 7 9800X3D, the CPU model of MasterDomino's failing run on e59e5de9.

cmake --build --preset <dev|release> --target cpu_x87_env_aot_original cpu_x87_env_aot_original_lifted cpu_x87_env_aot_altered cpu_x87_env_aot_altered_lifted cpu_x87_env_aot_mutants
ctest --test-dir out/build/<dev|release> --no-tests=error -j 1 -V -R '^cpu_aot_x87_env$'
ctest --test-dir out/build/<dev|release> --no-tests=error -j 4 -R '^cpu_(aot_x87|x87)'

Both presets pass, with no skips:

  • 12 x87 env sequences accepted; 54 rejection controls passed;
  • 132 differential/state/roundtrip/altered cases matched (native FDECSTP FOP=updated(fop=0x1f6,fcs=0x33), FCS/FDS=preserved); 5 runtime trap controls passed; 12 MXCSR DAZ/FTZ isolation checks passed; 9 compiled C++ mutant controls + 7 altered-build controls caught;
  • all 31 cpu_(aot_x87|x87) tests pass.

This host classifies as FCS/FDS preserved, where the author's i7-13620H reports deprecated-zero. So the two profiles of each classification (FOP and FCS/FDS) have now both been seen passing. docs_links_check (155 files, 678 links), bidi_controls_check and form_coverage_check pass.

Findings since 520b61c0, checked at this head.

  • JohnConnorNPC 1, FCS/FDS round-trip depends on the host (blocking): addressed. The round-trip inputs now carry non-zero selectors (0x1234/0x5678, 0x002B/0x0033). The lifted output is held to the loaded values; the native output is classified as preserved or deprecated-zero, anything else fails, and the host must give one profile across all cases. mut_fldenv_zero_fcs_fds tells the two behaviours apart.
  • JohnConnorNPC 2, C0–C3 across WAIT/FLDCW/FNSTCW/FNSTSW: the profile is now stated in the lifter docstring and docs/experiments.md, and op_fldenv_wait_fnstenv compares SW=0x4700 natively across WAIT. That is the case he asked for. FLDCW, FNSTCW and FNSTSW AX have no native case; see the note below.
  • JohnConnorNPC, "Intel default fopcode compatibility" wording: changed to "measured on the i7-13620H".
  • My note 1, FDS unpinned: addressed. The fds stored as 0 mutant that survived on 520b61c0 is now killed.
  • My note 2, eager FLDENV/FRSTOR traps: addressed. The docs say the traps are stricter than the hardware, and sw_es_frstor pins the FRSTOR check without FDECSTP. The mutant that survived on 520b61c0 is now killed.

Mutants of my own in tools/cpu_x87_env_aot.py. Each was applied alone, the five targets rebuilt in dev, the test run, and the source restored afterwards (git diff --quiet clean, test passes again).

Mutant Result
fds stored as 0 killed (fdecstp_wrap_top_0: preserved-metadata mismatch)
fcs stored as 0 killed (same assertion)
fds loaded as 0 killed (same assertion)
FRSTOR eager trap removed killed (sw_es_frstor: lifted op_frstor_fnsave returned instead of trapping)
FRSTOR trap ignores SW.ES killed (same assertion)
FLDENV eager trap removed killed (sw_es_fldenv)
WAIT clears C0–C3 killed (fldenv_wait_fnstenv_0x4700: sw mismatch nat=0x4700 lif=0x0)
FNSTSW AX clears C0–C3 survives
FLDCW clears C0–C3 survives
FNSTCW clears C0–C3 survives

No equivalent mutants in this round.

Non-blocking.

  1. C0–C3 across FLDCW, FNSTCW and FNSTSW AX is stated but not measured by the fixture. The new frstor_cw_sw_fnsave sequence is only a translator acceptance case, so the three surviving mutants above pass. The docs sentence "wait, fldcw, fnstcw, and fnstsw ax preserve C0..C3 (verified by op_fldenv_wait_fnstenv with SW = 0x4700)" reads as if that export covers all four; it covers WAIT. One native export such as frstor; fldcw; fnstcw; fnstsw ax; fnsave with C0–C3 set would pin the other three, or the sentence could name WAIT as the only fixture-checked one.

Verdict: approve on 90ce1e69. MasterDomino's changes request on e59e5de9 still stands on the PR, so I am not merging.

Environment: AMD Ryzen 7 9800X3D, Windows 11 25H2 build 26200.9974; MSVC 19.52.37029; Python 3.12.10. No GPU tests ran.
CI: Build and test on Windows, Assemble and translate gfx1013 fixtures and Run platform-independent Python checks on Linux pass on 90ce1e69.

This reply was AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:review:6097453429 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2681#pullrequestreview-6097453429). Originally posted by [pigalot](https://github.com/pigalot) on 2026-11-28T11:22:47Z. **Review:** APPROVED --- Retested `90ce1e69` integrated over `main` `ee3347d3` (tree `c9238d3d`). The merge is clean and `git diff --cached --check origin/main` is clean. The author's merge of `main` (`60b5a24a`) has an empty `git show --remerge-diff`, so I read `60b5a24a..90ce1e69` as the change since my approval on `520b61c0`. **Run on the AMD host.** AMD Ryzen 7 9800X3D, the CPU model of MasterDomino's failing run on `e59e5de9`. ```powershell cmake --build --preset <dev|release> --target cpu_x87_env_aot_original cpu_x87_env_aot_original_lifted cpu_x87_env_aot_altered cpu_x87_env_aot_altered_lifted cpu_x87_env_aot_mutants ctest --test-dir out/build/<dev|release> --no-tests=error -j 1 -V -R '^cpu_aot_x87_env$' ctest --test-dir out/build/<dev|release> --no-tests=error -j 4 -R '^cpu_(aot_x87|x87)' ``` Both presets pass, with no skips: - `12 x87 env sequences accepted; 54 rejection controls passed`; - `132 differential/state/roundtrip/altered cases matched (native FDECSTP FOP=updated(fop=0x1f6,fcs=0x33), FCS/FDS=preserved); 5 runtime trap controls passed; 12 MXCSR DAZ/FTZ isolation checks passed; 9 compiled C++ mutant controls + 7 altered-build controls caught`; - all 31 `cpu_(aot_x87|x87)` tests pass. This host classifies as FCS/FDS `preserved`, where the author's i7-13620H reports `deprecated-zero`. So the two profiles of each classification (FOP and FCS/FDS) have now both been seen passing. `docs_links_check` (155 files, 678 links), `bidi_controls_check` and `form_coverage_check` pass. **Findings since `520b61c0`, checked at this head.** - **JohnConnorNPC 1, FCS/FDS round-trip depends on the host (blocking):** addressed. The round-trip inputs now carry non-zero selectors (`0x1234`/`0x5678`, `0x002B`/`0x0033`). The lifted output is held to the loaded values; the native output is classified as `preserved` or `deprecated-zero`, anything else fails, and the host must give one profile across all cases. `mut_fldenv_zero_fcs_fds` tells the two behaviours apart. - **JohnConnorNPC 2, C0–C3 across WAIT/FLDCW/FNSTCW/FNSTSW:** the profile is now stated in the lifter docstring and `docs/experiments.md`, and `op_fldenv_wait_fnstenv` compares `SW=0x4700` natively across WAIT. That is the case he asked for. FLDCW, FNSTCW and FNSTSW AX have no native case; see the note below. - **JohnConnorNPC, "Intel default fopcode compatibility" wording:** changed to "measured on the i7-13620H". - **My note 1, FDS unpinned:** addressed. The `fds stored as 0` mutant that survived on `520b61c0` is now killed. - **My note 2, eager FLDENV/FRSTOR traps:** addressed. The docs say the traps are stricter than the hardware, and `sw_es_frstor` pins the FRSTOR check without FDECSTP. The mutant that survived on `520b61c0` is now killed. **Mutants of my own** in `tools/cpu_x87_env_aot.py`. Each was applied alone, the five targets rebuilt in `dev`, the test run, and the source restored afterwards (`git diff --quiet` clean, test passes again). | Mutant | Result | |---|---| | `fds` stored as 0 | killed (`fdecstp_wrap_top_0: preserved-metadata mismatch`) | | `fcs` stored as 0 | killed (same assertion) | | `fds` loaded as 0 | killed (same assertion) | | FRSTOR eager trap removed | killed (`sw_es_frstor: lifted op_frstor_fnsave returned instead of trapping`) | | FRSTOR trap ignores SW.ES | killed (same assertion) | | FLDENV eager trap removed | killed (`sw_es_fldenv`) | | WAIT clears C0–C3 | killed (`fldenv_wait_fnstenv_0x4700: sw mismatch nat=0x4700 lif=0x0`) | | FNSTSW AX clears C0–C3 | survives | | FLDCW clears C0–C3 | survives | | FNSTCW clears C0–C3 | survives | No equivalent mutants in this round. **Non-blocking.** 1. **C0–C3 across FLDCW, FNSTCW and FNSTSW AX is stated but not measured by the fixture.** The new `frstor_cw_sw_fnsave` sequence is only a translator acceptance case, so the three surviving mutants above pass. The docs sentence "`wait`, `fldcw`, `fnstcw`, and `fnstsw ax` preserve `C0..C3` (verified by `op_fldenv_wait_fnstenv` with `SW = 0x4700`)" reads as if that export covers all four; it covers WAIT. One native export such as `frstor; fldcw; fnstcw; fnstsw ax; fnsave` with C0–C3 set would pin the other three, or the sentence could name WAIT as the only fixture-checked one. **Verdict:** approve on `90ce1e69`. MasterDomino's changes request on `e59e5de9` still stands on the PR, so I am not merging. Environment: AMD Ryzen 7 9800X3D, Windows 11 25H2 build 26200.9974; MSVC 19.52.37029; Python 3.12.10. No GPU tests ran. CI: `Build and test on Windows`, `Assemble and translate gfx1013 fixtures` and `Run platform-independent Python checks on Linux` pass on `90ce1e69`. This reply was AI-assisted.
JohnConnorNPC commented 2026-11-29 13:24:33 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by JohnConnorNPC on 2026-11-29T13:24:33Z.


Re-review of head 90ce1e69, trial-merged onto main c04e0dd6 (git merge-tree --write-tree exits 0, git diff --check clean). Pure Python on Linux, plus native x87 probes (gcc inline asm) on an Intel i7-10700KF. I did no MSVC build, so the native/lifted DLL differential is not re-run here.

Since my comment on 520b61c0:

  • 60b5a24a is a clean merge of main (git show --remerge-diff prints nothing).
  • FCS/FDS (my blocking point): addressed. The round-trip inputs now carry non-zero selectors. The lifted side is held to the loaded values, and the native side is classified as preserved or deprecated-zero, with a single profile required per host. I mirrored the fixture's FCS/FDS cases in a native probe here. This host reports CPUID.(EAX=7,ECX=0):EBX[13]=1, and the probe gives FCS/FDS profile counts: preserved=0 deprecated-zero=7 other=0 -> single profile. It covers both fldenv_fnstenv sets, both fldenv_wait_fnstenv cases, fdecstp_wrap_top_0/7 and frstor_fnsave. FDECSTP leaves FOP alone on all 8 tops (preserved=8 updated=0). So a second Intel part classifies the same way as the author's i7-13620H.
  • C0–C3 across WAIT: the probe gives sw C0..C3 in=0x4700 out=0x4700, which matches the new op_fldenv_wait_fnstenv case. I won't repeat the FLDCW/FNSTCW/FNSTSW note from the latest approval.
  • On the merged tree the translator half gives 12 x87 env sequences accepted; 54 rejection controls passed. form_coverage_check, docs_links_check and bidi_controls_check exit 0.
  • The FOP wording now says "measured on the i7-13620H". That closes my nit.

MUST: none.

SHOULD

  1. FIP after masked non-control instructions is not modelled, but the docs say it matches measured hardware. The lifter docstring and docs/experiments.md say FDECSTP, FLD, FLD1, FLDZ and FSTP preserve the loaded or initialized FIP in the lifted model, "matching the profile measured on the i7-13620H". The fixture never compares FIP after these instructions: fdecstp_wrap_top_*, fnstenv_pushed_*, fstenv_pushed_* and frstor_fdecstp_top_* all call assert_env28_deterministic(..., check_fip=False).
    Here, I ran FLDENV (FIP 0x12345678) followed by one instruction and then FNSTENV. FIP came back as the low 32 bits of that instruction's own address for FDECSTP, FLD1, FLD m80 and FSTP m80 (for example fdecstp fip=0x8f98c312 (insn low32 0x8f98c312 UPDATED)). FOP and FDP kept their loaded values. The AMD result on e59e5de9 also showed FDECSTP updating FIP. So on both vendors measured so far, the lifted FIP differs from native after these instructions.
    Fix: say that FIP after non-control instructions is neither modelled nor compared. Or classify the native FIP the way FOP is classified, and add a case that tells the two apart.

NIT
2. _classify_fcs_fds accepts whichever profile the host shows, but never reads CPUID. The docs tie deprecated-zero to CPUID.(EAX=7,ECX=0):EBX[13]=1. Asserting that the bit agrees with the observed profile would separate a deprecating host from a wrong result.

Merge is blocked by the changes request on e59e5de9. Its FOP, entry-state, #MF, FNINIT, FCS/FDS and docs points look addressed at this head, so it needs a re-review by the reviewer who opened it. I'd like SHOULD 1 settled first, but it's a docs/profile fix, not wrong code inside the stated model.

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7256515673 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2681#issuecomment-7256515673). Originally posted by [JohnConnorNPC](https://github.com/JohnConnorNPC) on 2026-11-29T13:24:33Z. --- Re-review of head `90ce1e69`, trial-merged onto `main` `c04e0dd6` (`git merge-tree --write-tree` exits 0, `git diff --check` clean). Pure Python on Linux, plus native x87 probes (gcc inline asm) on an Intel i7-10700KF. I did no MSVC build, so the native/lifted DLL differential is not re-run here. Since my comment on `520b61c0`: - `60b5a24a` is a clean merge of `main` (`git show --remerge-diff` prints nothing). - **FCS/FDS (my blocking point): addressed.** The round-trip inputs now carry non-zero selectors. The lifted side is held to the loaded values, and the native side is classified as `preserved` or `deprecated-zero`, with a single profile required per host. I mirrored the fixture's FCS/FDS cases in a native probe here. This host reports `CPUID.(EAX=7,ECX=0):EBX[13]=1`, and the probe gives `FCS/FDS profile counts: preserved=0 deprecated-zero=7 other=0 -> single profile`. It covers both `fldenv_fnstenv` sets, both `fldenv_wait_fnstenv` cases, `fdecstp_wrap_top_0/7` and `frstor_fnsave`. FDECSTP leaves FOP alone on all 8 tops (`preserved=8 updated=0`). So a second Intel part classifies the same way as the author's i7-13620H. - **C0–C3 across WAIT:** the probe gives `sw C0..C3 in=0x4700 out=0x4700`, which matches the new `op_fldenv_wait_fnstenv` case. I won't repeat the FLDCW/FNSTCW/FNSTSW note from the latest approval. - On the merged tree the translator half gives `12 x87 env sequences accepted; 54 rejection controls passed`. `form_coverage_check`, `docs_links_check` and `bidi_controls_check` exit 0. - The FOP wording now says "measured on the i7-13620H". That closes my nit. MUST: none. SHOULD 1. **FIP after masked non-control instructions is not modelled, but the docs say it matches measured hardware.** The lifter docstring and `docs/experiments.md` say FDECSTP, FLD, FLD1, FLDZ and FSTP preserve the loaded or initialized FIP in the lifted model, "matching the profile measured on the i7-13620H". The fixture never compares FIP after these instructions: `fdecstp_wrap_top_*`, `fnstenv_pushed_*`, `fstenv_pushed_*` and `frstor_fdecstp_top_*` all call `assert_env28_deterministic(..., check_fip=False)`. Here, I ran FLDENV (FIP `0x12345678`) followed by one instruction and then FNSTENV. FIP came back as the low 32 bits of that instruction's own address for FDECSTP, FLD1, FLD m80 and FSTP m80 (for example `fdecstp fip=0x8f98c312 (insn low32 0x8f98c312 UPDATED)`). FOP and FDP kept their loaded values. The AMD result on `e59e5de9` also showed FDECSTP updating FIP. So on both vendors measured so far, the lifted FIP differs from native after these instructions. Fix: say that FIP after non-control instructions is neither modelled nor compared. Or classify the native FIP the way FOP is classified, and add a case that tells the two apart. NIT 2. `_classify_fcs_fds` accepts whichever profile the host shows, but never reads CPUID. The docs tie `deprecated-zero` to `CPUID.(EAX=7,ECX=0):EBX[13]=1`. Asserting that the bit agrees with the observed profile would separate a deprecating host from a wrong result. Merge is blocked by the changes request on `e59e5de9`. Its FOP, entry-state, #MF, FNINIT, FCS/FDS and docs points look addressed at this head, so it needs a re-review by the reviewer who opened it. I'd like SHOULD 1 settled first, but it's a docs/profile fix, not wrong code inside the stated model. AI-assisted.
Ammmae0x commented 2026-12-01 03:22:03 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by Ammmae0x on 2026-12-01T03:22:03Z.


@MasterDomino Friendly re-review ping: your CHANGES_REQUESTED review on e59e5de9 is currently the only merge block on this PR.

Head 90ce1e69 (via 520b61c0 and 90ce1e69) addresses the FOP/FCS/FDS profiles, pre-init state refusals, unmasked exception traps, FNINIT register/tag handling, undefined condition codes, and docs. All 5 CI checks pass, git merge-tree --write-tree onto upstream/main (1c634037) exits 0, and @pigalot re-tested and approved 90ce1e69 on an AMD Ryzen 7 9800X3D Windows 11 host (all 31 cpu_(aot_x87|x87) checks passing across dev and release).

Could you re-review when you have a moment so this can land? Thank you!

AI-assisted.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7299631694 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/2681#issuecomment-7299631694). Originally posted by [Ammmae0x](https://github.com/Ammmae0x) on 2026-12-01T03:22:03Z. --- @MasterDomino Friendly re-review ping: your `CHANGES_REQUESTED` review on `e59e5de9` is currently the only merge block on this PR. Head `90ce1e69` (via `520b61c0` and `90ce1e69`) addresses the FOP/FCS/FDS profiles, pre-init state refusals, unmasked exception traps, FNINIT register/tag handling, undefined condition codes, and docs. All 5 CI checks pass, `git merge-tree --write-tree` onto `upstream/main` (`1c634037`) exits `0`, and `@pigalot` re-tested and approved `90ce1e69` on an AMD Ryzen 7 9800X3D Windows 11 host (all 31 `cpu_(aot_x87|x87)` checks passing across `dev` and `release`). Could you re-review when you have a moment so this can land? Thank you! AI-assisted.
This pull request cannot be merged automatically due to conflicts.
Merge manually to resolve the conflicts.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin 'upstream-pr/2681:upstream-pr/2681'
git switch 'upstream-pr/2681'

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch 'main'
git merge --no-ff 'upstream-pr/2681'
git switch 'upstream-pr/2681'
git rebase 'main'
git switch 'main'
git merge --ff-only 'upstream-pr/2681'
git switch 'upstream-pr/2681'
git rebase 'main'
git switch 'main'
git merge --no-ff 'upstream-pr/2681'
git switch 'main'
git merge --squash 'upstream-pr/2681'
git switch 'main'
git merge --ff-only 'upstream-pr/2681'
git switch 'main'
git merge 'upstream-pr/2681'
git push origin 'main'
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!2673
No description provided.