cpu: prove fixed RBP frame anchors #889

Manually merged
github merged 2 commits from gh-pr/889/head into gh-pr/889/base 2026-11-26 22:26:02 +00:00
Owner

@⁠R0Y00 on GitHub · 2026-11-23 16:07 UTC · original
R0Y00:codex/cpu-rbp-frame-anchor → main · +88 −23 · 7 files · 2 commits · merged 2026-11-23 16:30 UTC

Refs #870 and #317.

Track RBP as a constant offset from entry RSP after a verified frame setup. RSP and RBP accesses use the same bounded frame array. Require incoming paths to agree on the anchor. Address escape and unsupported operands still refuse translation.

The source-built frame fixture checks both paths through a shared slot, including a branch that reconstructs the same anchor. Four negative controls cover a mismatched join, an escaped address, an unwritten slot and an incorrect register restore.

Windows x64, MSVC 19.51, Release:

ctest --preset release --no-tests=error -R '^(cpu_aot_stack_frames|cpu_aot_direct_calls|cpu_aot_call_entries|cpu_exe_aot_convert|xmem_shim_(exports|allocation|default_allocation|query))$' --output-on-failure

8/8 passed. Documentation links, bidi controls, and git diff --check passed.

**@⁠R0Y00** on GitHub · 2026-11-23 16:07 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/889) `R0Y00:codex/cpu-rbp-frame-anchor` → `main` · +88 −23 · 7 files · 2 commits · merged 2026-11-23 16:30 UTC Refs #870 and #317. Track RBP as a constant offset from entry RSP after a verified frame setup. RSP and RBP accesses use the same bounded frame array. Require incoming paths to agree on the anchor. Address escape and unsupported operands still refuse translation. The source-built frame fixture checks both paths through a shared slot, including a branch that reconstructs the same anchor. Four negative controls cover a mismatched join, an escaped address, an unwritten slot and an incorrect register restore. Windows x64, MSVC 19.51, Release: ```powershell ctest --preset release --no-tests=error -R '^(cpu_aot_stack_frames|cpu_aot_direct_calls|cpu_aot_call_entries|cpu_exe_aot_convert|xmem_shim_(exports|allocation|default_allocation|query))$' --output-on-failure ``` 8/8 passed. Documentation links, bidi controls, and `git diff --check` passed.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 22:26:00 +00:00
github manually merged commit a1739cbfe8 into gh-pr/889/base 2026-11-26 22:26:02 +00:00
Author
Owner

@⁠R0Y00 on GitHub · 2026-11-23 16:14 UTC · original · edited 2026-11-23 16:15 UTC

Both Windows builds on 169289b stopped while generating blast_lifted.cpp. Frame calls step(ins, rsp, anchor), but the archive adapter still took the old signature. Auto-merge was paused, and the compatibility fix is now on this branch at a1739cb. It passes the anchor through the existing codec paths and uses the shared method for the remaining cases.

ctest --preset <dev|release> --no-tests=error -R '^(cpu_native_archive_(blast|reader)|cpu_aot_(stack_frames|direct_calls|call_entries))$' passed 5/5 in each preset on Windows x64. New CI is running.

**@⁠R0Y00** on GitHub · 2026-11-23 16:14 UTC · [original](https://github.com/R0Y00/Xbox2Windows/pull/889#issuecomment-7106820585) · edited 2026-11-23 16:15 UTC Both Windows builds on `169289b` stopped while generating `blast_lifted.cpp`. `Frame` calls `step(ins, rsp, anchor)`, but the archive adapter still took the old signature. Auto-merge was paused, and the compatibility fix is now on this branch at `a1739cb`. It passes the anchor through the existing codec paths and uses the shared method for the remaining cases. `ctest --preset <dev|release> --no-tests=error -R '^(cpu_native_archive_(blast|reader)|cpu_aot_(stack_frames|direct_calls|call_entries))$'` passed 5/5 in each preset on Windows x64. New CI is running.
This discussion has been locked. Commenting is limited to contributors.
No description provided.