test(victory-loader): pin seh::Context thread-state mapping and FXSAVE accessors #594
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!594
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@AnastasisKon on GitHub · 2026-11-28 10:27 UTC · original
AnastasisKon:vibe/context-mapping-tests-1705ac→main· +70 −0 · 1 files · 1 commits · openWhat 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 #593How 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.