cpu: translate nested direct calls from EXE entry #253

Manually merged
github merged 1 commit from gh-pr/253/head into gh-pr/253/base 2026-11-26 21:37:48 +00:00
Owner

@⁠RonLogic on GitHub · 2026-11-21 19:23 UTC · original
RonLogic:cpu/exe-nested-direct-calls → main · +121 −21 · 7 files · 1 commits · merged 2026-11-22 11:33 UTC

Extends the source-built EXE translator to follow nested direct calls by RVA and emit each callee before its callers. The public diff contains only this change on top of main, with #247 and #256 already merged. The traversal reuses the existing named-provider validation and preserves the returning entry and native termination wrapper from #394. Recursive call graphs are rejected.

The fixture adjusts one argument before calling the existing mix_args wrapper. The control bypasses that wrapper and calls the DLL directly. For both selector bytes, bypassing changes the import arguments, output bytes, and process exit code. Each translated process matches its native Windows counterpart.

Verified at 9bd9062 on a0c5b7b: all 107 CPU tests passed locally on Windows x64 with no skips. This includes the nested-call control, two direct targets, two named providers, framed and mapped EXE cases, and native termination. The Markdown link check also passed. A trial merge with 0a9f4b4 completed without conflicts.

ctest --test-dir out/build/followup --no-tests=error -R '^cpu_' -V
python -B tests/docs_links_check.py
**@⁠RonLogic** on GitHub · 2026-11-21 19:23 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/253) `RonLogic:cpu/exe-nested-direct-calls` → `main` · +121 −21 · 7 files · 1 commits · merged 2026-11-22 11:33 UTC Extends the source-built EXE translator to follow nested direct calls by RVA and emit each callee before its callers. The public diff contains only this change on top of main, with #247 and #256 already merged. The traversal reuses the existing named-provider validation and preserves the returning entry and native termination wrapper from #394. Recursive call graphs are rejected. The fixture adjusts one argument before calling the existing `mix_args` wrapper. The control bypasses that wrapper and calls the DLL directly. For both selector bytes, bypassing changes the import arguments, output bytes, and process exit code. Each translated process matches its native Windows counterpart. Verified at `9bd9062` on `a0c5b7b`: all 107 CPU tests passed locally on Windows x64 with no skips. This includes the nested-call control, two direct targets, two named providers, framed and mapped EXE cases, and native termination. The Markdown link check also passed. A trial merge with `0a9f4b4` completed without conflicts. ```powershell ctest --test-dir out/build/followup --no-tests=error -R '^cpu_' -V python -B tests/docs_links_check.py ```
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 21:37:47 +00:00
github manually merged commit 9bd90627f6 into gh-pr/253/base 2026-11-26 21:37:48 +00:00
This discussion has been locked. Commenting is limited to contributors.
No description provided.