cpu: prove fixed RBP frame anchors #882

Merged
R0Y00 merged 2 commits from upstream-pr/889 into main 2026-11-23 16:30:02 +00:00
R0Y00 commented 2026-11-23 16:07:50 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T16:07:50Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:issue:6563463904 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/889). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T16:07:50Z. --- 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.
upstream-sync closed this pull request 2026-11-24 06:45:15 +00:00
R0Y00 commented 2026-11-24 06:49:16 +00:00 (Migrated from github.com)

Imported from R0Y00/Xbox2Windows. Originally posted by R0Y00 on 2026-11-23T16:14:09Z.


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.

<!-- greyfinch-sync:R0Y00/Xbox2Windows:comment:7106820585 --> Imported from [R0Y00/Xbox2Windows](https://github.com/R0Y00/Xbox2Windows/pull/889#issuecomment-7106820585). Originally posted by [R0Y00](https://github.com/R0Y00) on 2026-11-23T16:14:09Z. --- 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.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
R0Y00/Xbox2Windows!882
No description provided.