test(victory-loader): pin seh::Context thread-state mapping and FXSAVE accessors #590
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/590"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from LakshanSivakumar/Native-Victory-macOS. Originally posted by AnastasisKon on 2026-11-28T10:27:19Z.
What this changes
Pins
seh::Context::set_from_thread_stateand the FXSAVE accessors incrates/victory-loader/src/native/seh/context.rswith unit tests: gpr order (rax, rcx, rdx, rbx, rsp, rbp, rsi, rdi, r8-r15), rip, eflags truncation to u32, cs/fs/gs from the Mach state, ds/es/ss fixed to 0x2B,set_mxcsrwritingmx_csr+ LE bytes inflt[1][8..12], andxmm(i)=flt[10 + i]. No behaviour change. Refs #589How it was tested
cargo test --target x86_64-apple-darwin -p victory-loader— 33 passed (4 new context tests), 0 failed, 8 consecutive clean runs under Rosetta (one unrelated one-off flake seen once in a native test, not reproducible)cargo test -p victory-hle -p victory -p victory-gpu -p xtask(host arm64) — all okcargo clippy --workspace --all-targets --locked --target x86_64-pc-windows-gnullvm -- -D warnings— clean (RC=0)cargo xtask policy— 404 files okChecklist
VICTORY_*variable and documented — n/a, no new diagnosticsView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.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.