[PR #56] [CLOSED] virt: Initial implementation using zydis and xbyak #1247

Closed
opened 2026-02-27 21:11:47 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/shadps4-emu/shadPS4/pull/56
Author: @skmp
Created: 10/15/2023
Status: Closed

Base: mainHead: skmp/zdys-virt


📝 Commits (4)

  • afe8ee1 virt: WIP with zydis and xbyak
  • 1a9e1ff WIP: Fix stack setup
  • addadb2 WIP: Add __error, mmap workarounds
  • 483ce75 WIP: Add asserts for segment overrides

📊 Changes

6 files changed (+647 additions, -22 deletions)

View changed files

📝 .gitmodules (+5 -0)
📝 src/core/PS4/HLE/LibKernel.cpp (+50 -0)
📝 src/core/PS4/Linker.cpp (+586 -17)
📝 src/core/PS4/Stubs.cpp (+4 -4)
📝 src/core/PS4/Stubs.h (+1 -1)
third-party/xbyak (+1 -0)

📄 Description

Overview

This is a cut-down version of #23, meant to provide very basic, simple virtualization at the cost of perfomance.

Goals

  • Simple implementation
  • Virtualize all registers
  • No register allocation
  • Support most (all?) ps4 instructions/regs, though just passthrough
  • Basic, per thread code cache
  • No SMC support
  • No instruction rewriting for most operations

Todo

  • Get basic hack-and-slash demo working
  • Decide on a testing stategy
  • Rework to less horrific code
  • Support multiple threads, TCB overflows, and other corner cases gracefully

🔄 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/shadps4-emu/shadPS4/pull/56 **Author:** [@skmp](https://github.com/skmp) **Created:** 10/15/2023 **Status:** ❌ Closed **Base:** `main` ← **Head:** `skmp/zdys-virt` --- ### 📝 Commits (4) - [`afe8ee1`](https://github.com/shadps4-emu/shadPS4/commit/afe8ee173ee6051c172e15160e1464a7e145d802) virt: WIP with zydis and xbyak - [`1a9e1ff`](https://github.com/shadps4-emu/shadPS4/commit/1a9e1ffc16eb9cf11d3dbf8a63ea02cf1fd53c9f) WIP: Fix stack setup - [`addadb2`](https://github.com/shadps4-emu/shadPS4/commit/addadb2a2d46e6ce2ba2c11aa592f6fc19ae1699) WIP: Add __error, mmap workarounds - [`483ce75`](https://github.com/shadps4-emu/shadPS4/commit/483ce7576941796ddf1410a6cce675524800de66) WIP: Add asserts for segment overrides ### 📊 Changes **6 files changed** (+647 additions, -22 deletions) <details> <summary>View changed files</summary> 📝 `.gitmodules` (+5 -0) 📝 `src/core/PS4/HLE/LibKernel.cpp` (+50 -0) 📝 `src/core/PS4/Linker.cpp` (+586 -17) 📝 `src/core/PS4/Stubs.cpp` (+4 -4) 📝 `src/core/PS4/Stubs.h` (+1 -1) ➕ `third-party/xbyak` (+1 -0) </details> ### 📄 Description ### Overview This is a cut-down version of #23, meant to provide very basic, simple virtualization at the cost of perfomance. ### Goals - Simple implementation - Virtualize all registers - No register allocation - Support most (all?) ps4 instructions/regs, though just passthrough - Basic, per thread code cache - No SMC support - No instruction rewriting for most operations ### Todo - [x] Get basic hack-and-slash demo working - [ ] Decide on a testing stategy - [ ] Rework to less horrific code - [ ] Support multiple threads, TCB overflows, and other corner cases gracefully --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 21:11:47 +03:00
Sign in to join this conversation.
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/shadPS4#1247
No description provided.