Commit Graph
15542 Commits
Author SHA1 Message Date
JosJuice 7378459c53 Merge pull request #15054 from JosJuice/dolreader-oversized-sections
DolReader: Fix booting Game Boy Interface
2026-11-29 20:53:12 +01:00
JosJuice 1c5badadc4 Merge pull request #15050 from JosJuice/android-menu-hotkey
Android: Add hotkey for opening the emulation menu
2026-11-29 10:17:09 +01:00
Jordan Woyak 89799f7b09 Merge pull request #15039 from jordan-woyak/remove-redundant-audio-backends
AudioCommon: Remove redundant audio backends.
2026-11-28 16:41:43 -06:00
JosJuice 541b52b66a DolReader: Fix booting Game Boy Interface
This reverts a validity check that was added as small part of aabde19.
Now Game Boy Interface successfully boots again.
2026-11-27 19:01:48 +01:00
JosJuice 44a1e006d1 Merge pull request #14806 from SuperSamus/regcache-data-oriented
JitRegCache: Refactor using a data oriented design
2026-11-25 22:21:44 +01:00
Jordan Woyak 0318069674 Merge pull request #15018 from jordan-woyak/spsc-queue-node-array
Common/SPSCQueue: Hold an array of values in each linked node to make SPSCQueue of u8 practical.
2026-11-23 22:56:09 -06:00
JosJuice 5e03c37c6b Android: Add hotkey for opening the emulation menu
In the future, I would like to refactor HotkeyManager to give us a nice
way to have Android-exclusive hotkeys without relying on ifdefs. But I
want to get this one Android-exclusive hotkey into Dolphin before the
next release anyway, because this is one of the most requested hotkeys,
if not the most requested hotkey.
2026-11-22 18:03:09 +01:00
Martino Fontana 1704baf53b JitRegCache: Also make the constraints data oriented
`RCConstraints::IsAnyConstraintActive()` was extremely inefficient.
It could be argued that, since it's only used in ASSERTs, they could have been changed to DEBUG_ASSERTs.
But with this, we can have them in release builds with little performance impact.

Also, the implementations of `RCConstraints` are moved to the header files, since they tend to be short and thus inline well.

All the low-hanging performance improvements for the register cache are now fixed, with profiling percentages being at expected values.
(Though more micro-optimizations are possible.)
2026-11-22 17:17:04 +01:00
Martino Fontana b23f8d91b0 JitRegCache: Refactor using a data oriented design
Replace the "array of structure" design with a "structure of array". Boolean members are represented by a bitset.
The main benefit is that filtering the registers in regcache operations can be done in one simple bitwise instruction.
This is especially useful on `Flush`, as callers don't need anymore to limit the iterated registers for performance reasons.

The change only applies to the x86 regcache.
2026-11-22 17:17:03 +01:00
JosJuice fd8d402791 Merge pull request #14998 from dokslade/jitarm64-fctiw-nan
JitArm64: Convert NaN to 0x80000000 in fctiwx
2026-11-22 15:58:02 +01:00
Jordan Woyak b2c2c21e58 Merge pull request #15008 from jordan-woyak/wm-real-remove-config-change-callback
HW/WiimoteReal: Fix crash when UI disconnects a Balance Board.
2026-11-20 22:11:45 -06:00
Jordan Woyak ea55bd0df7 AudioCommon: Remove PulseAudio audio backend. 2026-11-19 21:20:53 -06:00
Jordan Woyak 2c2f33519a AudioCommon: Remove ALSA audio backend. 2026-11-19 21:20:53 -06:00
JMC47 21355ea0c5 Merge pull request #14995 from Tilka/ax_fixes
AX: fix three bugs
2026-11-17 22:02:26 -05:00
JosJuice c5069249b4 Merge pull request #15027 from SuperSamus/regcache-small-cleanup
JitRegCache: Small cleanup
2026-11-16 20:46:42 +01:00
Jordan Woyak d5a4f48d9b Merge pull request #14774 from sepalani/mic-dedup2
Refactor the GameCube microphone code
2026-11-16 12:24:20 -06:00
Jordan Woyak 545bf5d5cc Merge pull request #15004 from dokslade/interp-addme-carry
Interpreter: Fix addme/subfme carry and share add/subtract code
2026-11-15 16:56:08 -06:00
Martino Fontana e9517cfea2 JitRegCache: Init emitter in constructor 2026-11-15 22:31:06 +01:00
Martino Fontana 2f6b10035d JitRegCache: Rename "default location" to "PPC State"
More intutive name, and more consistent with ARM's RegCache.
2026-11-15 22:31:06 +01:00
Martino Fontana 3e33294292 JitRegCache: Don't store m_default_location
The register cache is inconsistent in using that or getting it from `GetDefaultLocation(preg_t preg)`.
Considering how simple that function is, let's only use that and remove some state.
2026-11-15 22:31:06 +01:00
Martino Fontana 14d5fe714d BitSet: Some small additions
Also add requirements for using range functions.
And micro-optimize testing if a bit is set (GCC and MSVC struggle to emit `bt` or `tbz`/`tbnz` with `bs & (1 << n)` compared to `(bs >> n) & 1`).
2026-11-15 22:31:04 +01:00
Martino Fontana c73fcc1530 Jit64: More intuitive register reversion 2026-11-15 13:00:33 +01:00
dok.slade d706251c3e Boot: Restore MEM1 filtering of IOS ELF segments
Since PR #14115, writeAddr is p_paddr | 0x80000000, so comparing it against
the physical RAM size skipped every segment and broke booting MIOS
(GameCube discs from the Wii Disc Channel).

Mask to the physical address before comparing.

Fixes https://bugs.dolphin-emu.org/issues/14176
2026-11-15 12:36:01 +01:00
JosJuice f7a0bf5bd6 Merge pull request #14888 from SuperSamus/dcbx-dont-clear-icache
Jit: Don't invalidate instruction block cache with dcbx
2026-11-15 12:29:37 +01:00
Tillmann Karras 83f79b4336 AX: rename ITD fields (NFC) 2026-11-14 23:25:53 +00:00
Tillmann Karras f86f32a6f2 AX: rename ADD/SUB_TO_LR commands (NFC) 2026-11-14 23:25:53 +00:00
Tillmann Karras 18b7af84df AX: fix GC surround bug 2026-11-14 23:25:53 +00:00
Tillmann Karras abeb94c457 AX: fix Wii surround bug 2026-11-14 23:21:34 +00:00
Tillmann Karras 3837bc7c75 AX: always set de-pop values on Wii 2026-11-14 22:44:44 +00:00
Jordan Woyak 334334d42a Merge pull request #15006 from Sintendo/mfspr-movsx
Jit64: mfspr - Sign-extend slice_length
2026-11-14 14:57:32 -06:00
Jordan Woyak f9cb5f1c08 Merge pull request #13704 from unexploredtest/cmake_source
CMake: Fix relative pathing when project is imported
2026-11-14 13:49:30 -06:00
JosJuice be0e304c02 Merge pull request #14978 from JoshuaVandaele/quick-stop-hang
CPU: Fix quickly-stopped games hanging Dolphin
2026-11-14 20:03:07 +01:00
Jordan Woyak 9f62f12d57 HW/WiimoteReal: Use config getter directly instead of a config change callback to fix crash when UI disconnects a Balance Board. 2026-11-12 20:04:50 -06:00
Jordan Woyak e36cd326c0 Merge pull request #15016 from jordan-woyak/remove-bb-dump-port
HW/WiimoteReal: Remove BBDumpPort feature.
2026-11-12 20:00:37 -06:00
Jordan Woyak 9cef41db5f Merge pull request #14976 from JoeysRetroHandhelds/wiimote-null-hid-source
WiimoteDevice: Don't send output reports to a null HID source
2026-11-12 19:49:05 -06:00
Jordan Woyak cd92a628f3 Merge pull request #14876 from VampireFlower/usbgecko
Optimize USB Gecko Emulation
2026-11-12 17:58:38 -06:00
dok.slade 95d7468be5 Interpreter: Share add/subtract code in a Helper_Add template
All PowerPC add and subtract instructions compute a + b + carry_in,
with ~rA as a for the subtract forms. Helper_Add computes this sum in
64 bits and writes rD. Depending on its template parameters, it also
writes CA (bit 32 of the sum), and OV and CR0 as requested by the OE
and Rc bits.

This replaces the carry and overflow code of each instruction and
HasAddOverflowed. There is no behavior change.

With GCC -O3 on x86-64, each instruction compiles to the same number
of host instructions as before, or one fewer.
2026-11-13 00:17:30 +01:00
dok.slade 1f7ead58bc Interpreter: Fix carry of addme/subfme when CA is set
When XER[CA] was set, addme and subfme always cleared it.

Both instructions add 0xFFFFFFFF and CA to their operand (rA for addme,
~rA for subfme). With CA=1, this adds 2^32, so there is always a carry
out. With CA=0, there is a carry out unless the operand is 0.

This affected the interpreter, the cached interpreter and the JitArm64
fallbacks (addmeo/subfmeo). Jit64 already computes the right value.
2026-11-13 00:17:30 +01:00
Jordan Woyak d393f79474 Core/NetPlayClient: Include DesiredWiimoteState.h instead of forward declaring to avoid sizeof compilation errors. 2026-11-12 14:36:17 -06:00
Jordan Woyak b4c90227c1 HW/WiimoteReal: Remove BBDumpPort feature. 2026-11-11 18:56:06 -06:00
Sintendo ad3598389e Jit64: mfspr - Fix comment formatting 2026-11-10 17:06:46 +01:00
Sintendo b47056b6fd Jit64: mfspr - Sign-extend slice_length
`slice_length` is defined as an int, but was being zero-extended to 64
bits on x64. We should match what we do for ARM64 and sign-extend, as
discussed in PR #14944.
2026-11-10 16:55:20 +01:00
dok.slade 1e9c7b403e JitArm64: Convert NaN to 0x80000000 in fctiwx
fctiw and fctiwz convert a NaN to 0x80000000, but FCVTZS returns 0
for a NaN. The interpreter and Jit64 (CVTPD2DQ) already return
0x80000000.

Fixes https://bugs.dolphin-emu.org/issues/14136.
2026-11-08 22:09:08 +01:00
Tillmann Karras fd7d53a7f7 Skylanders: only play audio received on endpoint 2
This avoids problems in the unrelated game Band Hero.
2026-11-08 17:42:07 +00:00
Admiral H. Curtiss 4a70679d0a Merge pull request #14968 from acts-1631/state-lzo-bounds
Core: Bound legacy savestate LZO decompression
2026-11-06 02:29:35 +01:00
Acts1631 f662e8585f Core: bound legacy savestate LZO decompression
Legacy savestate headers controlled both the compressed input length
and the decompression buffer size. The input was read into a fixed-size
buffer without validation, and the unsafe LZO API could write past its
output buffer.

Use the legacy block size as the output capacity, reject oversized
compressed blocks, and use the bounds-checking LZO decompressor.
2026-11-05 17:09:40 -05:00
Acts1631 a95137ad33 Core: bound FIFO memory updates
FIFO logs control each memory update address and data size. Playback
masked only the start address into RAM or EXRAM, then copied the
complete update contiguously. An update reaching the end of a mapped
region could therefore write beyond host-mapped emulated memory.

Resolve the target through MemoryManager and reject updates larger than
the remaining valid span before copying them.
2026-11-05 17:09:36 -05:00
Jordan Woyak 045f3fea55 Core/IOS/Network/Socket: Use a guaranteed monotonic clock instead of high_resolution_clock. 2026-11-04 23:32:25 -06:00
JosJuice 584366cb68 Merge pull request #14794 from JosJuice/android-title-database
Android: Use TitleDatabase for game list
2026-11-04 19:46:41 +01:00
JosJuice 112e1a436a Merge pull request #14404 from sepalani/tri-close
AMMediaboard: Update closesocket error code approriately
2026-11-04 19:46:13 +01:00