Astro Bot Intel CPU compatibility fixes #720

Open
github-bot wants to merge 2 commits from github-bot/gh-720 into main AGit
Owner

@⁠nomolao2-cell on GitHub · 2026-09-19 19:11 UTC · original
nomolao2-cell:intel-astrobot-only → main · +366 −15 · 6 files · 2 commits · open

Problem

Astro Bot uses AMD-specific instructions, including SSE4a and RDPRU. On Intel CPUs these instructions can raise an illegal-instruction fault, causing the emulator to crash after the Asobi logo.

The macOS x86_64 host also requires compatible register-context handling and host-memory validation.

Fix

  • Emulate the required AMD/SSE4a memory-store and timing instructions on Intel hosts.
  • Load and update general-purpose registers from the macOS x86_64 context.
  • Add macOS Mach VM range validation for host pointers.
  • Validate AudioOut2 guest-owned PCM, attribute, and context memory before access.
  • Initialize the AudioOut2 context arena safely.
  • Preserve guest red-zone safety during host exception handling.
  • Link host memory support into the AudioOut2 test target.

Scope

This is a host-compatibility change for Intel CPUs and macOS. It does not modify game files, guest binaries, rendering hacks, or game-specific assets.

Testing

  • Local Windows Release build
  • Local Windows tests
  • GitHub Actions Windows
  • GitHub Actions Linux
  • GitHub Actions macOS

AFTER

CRASH RIGHT AFTER ASOBI LOGO
Captura de pantalla 2026-09-19 125941

BEFORE

image Captura de pantalla 2026-09-19 122855

AI use disclosure

I used Codex to assist with investigating the Intel illegal-instruction crashes, reviewing the host exception paths, preparing the compatibility changes, and checking the build/test results. The final diff was reviewed before submission.

**@⁠nomolao2-cell** on GitHub · 2026-09-19 19:11 UTC · [original](https://github.com/KytyPS5/KytyPS5/pull/720) `nomolao2-cell:intel-astrobot-only` → `main` · +366 −15 · 6 files · 2 commits · open ## Problem Astro Bot uses AMD-specific instructions, including SSE4a and RDPRU. On Intel CPUs these instructions can raise an illegal-instruction fault, causing the emulator to crash after the Asobi logo. The macOS x86_64 host also requires compatible register-context handling and host-memory validation. ## Fix - Emulate the required AMD/SSE4a memory-store and timing instructions on Intel hosts. - Load and update general-purpose registers from the macOS x86_64 context. - Add macOS Mach VM range validation for host pointers. - Validate AudioOut2 guest-owned PCM, attribute, and context memory before access. - Initialize the AudioOut2 context arena safely. - Preserve guest red-zone safety during host exception handling. - Link host memory support into the AudioOut2 test target. ## Scope This is a host-compatibility change for Intel CPUs and macOS. It does not modify game files, guest binaries, rendering hacks, or game-specific assets. ## Testing - [x] Local Windows Release build - [x] Local Windows tests - [ ] GitHub Actions Windows - [ ] GitHub Actions Linux - [ ] GitHub Actions macOS ## AFTER CRASH RIGHT AFTER ASOBI LOGO <img width="1267" height="766" alt="Captura de pantalla 2026-09-19 125941" src="https://github.com/user-attachments/assets/1ea8ac5a-6658-4188-98f0-743856a0832d" /> ## BEFORE <img width="1275" height="750" alt="image" src="https://github.com/user-attachments/assets/e48acfc7-1d0d-4375-955b-2ecc5a7349fc" /> <img width="1274" height="751" alt="Captura de pantalla 2026-09-19 122855" src="https://github.com/user-attachments/assets/d088835f-6761-4d52-9e96-b8a15b052233" /> ## AI use disclosure I used Codex to assist with investigating the Intel illegal-instruction crashes, reviewing the host exception paths, preparing the compatibility changes, and checking the build/test results. The final diff was reviewed before submission.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 09:30:43 +00:00
This pull request has changes conflicting with the target branch.
  • src/graphics/host_gpu/hostMemory.cpp
  • src/libs/audio.cpp
  • src/libs/libAudio2.cpp
  • src/loader/x64InstructionEmulator.cpp
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/720/head:github-bot/gh-720'
git switch 'github-bot/gh-720'

Merge

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