Remove console_insn (ported from XCL, GPL-2.0-only); take VIctory's crash handler #1057

Open
github-bot wants to merge 1 commit from github-bot/gh-1057 into main AGit
Owner

@⁠nullexxx on GitHub · 2026-11-25 17:49 UTC · original
nullexxx:pr/remove-console-insn → main · +719 −954 · 7 files · 1 commits · open

Summary

console_insn.rs and console_insn_decode.rs say they were ported from XCL (insn.rs, unchanged, and eh.rs). XCL is GPL-2.0-only, and code under GPL-2.0-only cannot be combined with this GPL-3.0-or-later program. (The README's credits say XCL was used as a reference and that fixes were written anew; these two files are the exception.)

This removes both files and the hook into the crash handler. crash.rs was VIctory ffe310e's plus that hook. It is now VIctory main's, whose own emulation of the console's AMD-only instructions covers what the module did:

clzero, with whole loops done in one exception;
monitorx / mwaitx, as a wait hint and a yield;
rdpru, clwb, and SSE4a's extrq / insertq.

On AMD processors none of this runs: they have the instructions.
Testing

cargo clippy -p victory-loader --all-targets --all-features --target x86_64-pc-windows-msvc -- -D warnings: clean. The rest of the workspace has the pre-existing lint failures that pull request 1 fixes.

**@⁠nullexxx** on GitHub · 2026-11-25 17:49 UTC · [original](https://github.com/fxceless/victory-fork/pull/1057) `nullexxx:pr/remove-console-insn` → `main` · +719 −954 · 7 files · 1 commits · open Summary console_insn.rs and console_insn_decode.rs say they were ported from XCL (insn.rs, unchanged, and eh.rs). XCL is GPL-2.0-only, and code under GPL-2.0-only cannot be combined with this GPL-3.0-or-later program. (The README's credits say XCL was used as a reference and that fixes were written anew; these two files are the exception.) This removes both files and the hook into the crash handler. crash.rs was VIctory ffe310e's plus that hook. It is now VIctory main's, whose own emulation of the console's AMD-only instructions covers what the module did: clzero, with whole loops done in one exception; monitorx / mwaitx, as a wait hint and a yield; rdpru, clwb, and SSE4a's extrq / insertq. On AMD processors none of this runs: they have the instructions. Testing cargo clippy -p victory-loader --all-targets --all-features --target x86_64-pc-windows-msvc -- -D warnings: clean. The rest of the workspace has the pre-existing lint failures that pull request 1 fixes.
console_insn.rs and console_insn_decode.rs were ported from XCL, which is
GPL-2.0-only and cannot be part of this GPL-3.0-or-later program. The
fork's crash.rs was VIctory ffe310e's plus the hook into it; it is now
VIctory main's, whose own emulation of the console's AMD-only
instructions covers what that module did: clzero (whole loops in one
exception), monitorx/mwaitx, rdpru, clwb and SSE4a.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01SEGb51RnUN5wf49ozEtinL
(cherry picked from commit a3f9d021c3e7416ce704f797df9cb98af40f4f62)
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 03:56:49 +00:00
This pull request has changes conflicting with the target branch.
  • crates/victory-loader/src/console_insn.rs
View command line instructions

Manual merge helper

Use this merge commit message when completing the merge manually.

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/1057/head:github-bot/gh-1057'
git switch 'github-bot/gh-1057'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-1057'
git switch 'github-bot/gh-1057'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-1057'
git switch 'github-bot/gh-1057'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-1057'
git switch 'main'
git merge --squash 'github-bot/gh-1057'
git switch 'main'
git merge --ff-only 'github-bot/gh-1057'
git switch 'main'
git merge 'github-bot/gh-1057'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.