[PR #847] [MERGED] x64_recomp: decode opcode 0x90 forms (X64-RECOMP-PRIMARY-90) #885

Closed
opened 2026-11-26 20:19:22 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/847
Author: @KernelSmoker
Created: 11/24/2026
Status: ✅ Merged
Merged: 11/25/2026
Merged by: @aslan2142

Base: main ← Head: kernelsmoker/x64-recomp-primary-90


📝 Commits (1)

  • be7478f x64_recomp: decode opcode 0x90 forms

📊 Changes

2 files changed (+22 additions, -1 deletions)

View changed files

📝 tests/test_x64_recomp.py (+13 -0)
📝 tools/x64_recomp.py (+9 -1)

📄 Description

Claimed in the coordination issue as: X64-RECOMP-PRIMARY-90 — https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7134430737

What and why

Opcode 0x90 was missing from the primary opcode table, so the decoder returned op_90 before its existing NOP/PAUSE/REX.B handling. Add the table entry and cover plain NOP, F3 90 PAUSE, and 41 90 XCHG r8,RAX. The REX.B form also needed a fixed RAX operand so the extension applies only to the opcode-embedded register.

Tested

  • python3 -I tests/test_x64_recomp.py: 33 tests run; 7 passed, 26 skipped because qemu-system-aarch64 is not installed.
  • python3 -I -m py_compile tools/x64_recomp.py tests/test_x64_recomp.py: passed.
  • git diff --check: passed.
  • Synthetic instruction bytes only; no game files used.

GPUs tested: n/a (CPU-only decoder tests)

AI-assisted: yes


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/847 **Author:** [@KernelSmoker](https://github.com/KernelSmoker) **Created:** 11/24/2026 **Status:** ✅ Merged **Merged:** 11/25/2026 **Merged by:** [@aslan2142](https://github.com/aslan2142) **Base:** `main` ← **Head:** `kernelsmoker/x64-recomp-primary-90` --- ### 📝 Commits (1) - [`be7478f`](https://github.com/ubiquitarianism/leonida/commit/be7478f5b6fca77fd68516e7a51424dfb912529c) x64_recomp: decode opcode 0x90 forms ### 📊 Changes **2 files changed** (+22 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_x64_recomp.py` (+13 -0) 📝 `tools/x64_recomp.py` (+9 -1) </details> ### 📄 Description Claimed in the coordination issue as: X64-RECOMP-PRIMARY-90 — https://github.com/ubiquitarianism/leonida/issues/14#issuecomment-7134430737 ### What and why Opcode `0x90` was missing from the primary opcode table, so the decoder returned `op_90` before its existing NOP/PAUSE/REX.B handling. Add the table entry and cover plain NOP, `F3 90` PAUSE, and `41 90` XCHG r8,RAX. The REX.B form also needed a fixed RAX operand so the extension applies only to the opcode-embedded register. ### Tested - `python3 -I tests/test_x64_recomp.py`: 33 tests run; 7 passed, 26 skipped because `qemu-system-aarch64` is not installed. - `python3 -I -m py_compile tools/x64_recomp.py tests/test_x64_recomp.py`: passed. - `git diff --check`: passed. - Synthetic instruction bytes only; no game files used. GPUs tested: n/a (CPU-only decoder tests) AI-assisted: yes --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
4ld0 2026-11-26 20:19:22 +01:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
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.

Dependencies

No dependencies set

Reference
starred/leonida#885
No description provided.