David Isztl f7e3c50da2 ARM64: Fix MMI variable-shift + PMADDW voodoo bugs
Second correctness pass over aR5900MMI.cpp found two divergences from the
interpreter (MMI.cpp) that the first pass's gtests missed because their oracles
were self-consistent with the buggy emitters:

- PSLLVW/PSRLVW/PSRAVW emitted four independent 32-bit lane shifts. The
  interpreter shifts only lanes 0 and 2 and sign-extends each 32-bit result to a
  full 64-bit doubleword (Rd.SD[k] = (s64)(s32)(Rt.UL[2k] op (Rs.UL[2k]&0x1F))).
  Rewrote them; corrected the refPSxxVW test oracles which had replicated the bug.

- PMADDW division voodoo skipped the (Rt&0x7FFFFFFF)==0 trigger (the Cbz treated
  a zero result as "skip"). Both ==0 and ==0x7FFFFFFF must add 0x70000000 when
  Rs!=Rt. Added a voodoo_check_rs label; added MMI_PMADDW_VoodooZeroRt to cover
  the ==0 path that the shared inA/inB inputs never reach.

Verified: unittests 100% (Arm64EmitEE 270/270); pcsx2-qt builds arm64.
2026-06-05 08:23:30 +02:00
2026-06-03 03:26:24 +02:00
2026-06-03 03:26:24 +02:00
2025-03-29 09:43:11 -04:00
2024-01-14 14:18:03 -05:00
2026-04-03 12:41:47 -04:00

PCSX2

Windows Build Status Linux Build Status MacOS Build Status Codacy Badge Discord Server

PCSX2 is a free and open-source PlayStation 2 (PS2) emulator. Its purpose is to emulate the PS2's hardware, using a combination of MIPS CPU Interpreters, Recompilers and a Virtual Machine which manages hardware states and PS2 system memory. This allows you to play PS2 games on your PC, with many additional features and benefits.

Project Details

PCSX2 has been in development for more than 20 years. Past versions could only run a few public domain game demos, but newer versions can run most games at full speed, including popular titles such as Final Fantasy X and Devil May Cry 3. Visit the PCSX2 compatibility list to check the latest compatibility status of games (with more than 2500 titles tested).

Installers and binaries for both stable and nightly builds are available from our website.

System Requirements

PCSX2 supports Windows, Linux, and Mac platforms. Our setup documentation page contains additional details on software and hardware requirements.

Please note that a BIOS dump from a legitimately-owned PS2 console is required to use the emulator. For more information, visit this page.

Contributing / Building

PCSX2 supports translation into other languages using Crowdin.

See the Contribution Guide for more info on how to contribute.

S
Description
No description provided
Readme
512 MiB
Languages
C++ 68.2%
Kotlin 9.8%
Swift 7.7%
C 5.6%
Objective-C++ 2.2%
Other 6.4%