Commit Graph

36 Commits (c9ef3ec1a3221383326ad598b41018b32e255cde)

Author SHA1 Message Date
Connor McLaughlin c9ef3ec1a3 DMA: Clear state on shutdown
Fix a rare crash where the GPU starting after a second boot accesses
uninitalized DMA fields.
5 years ago
Connor McLaughlin ca61f989fc DMA: Don't panic on invalid device read/write 5 years ago
Connor McLaughlin df12f08ac3 DMA: Add additional tick penalty to DMA chains for page change 5 years ago
Connor McLaughlin 29467d40c8 DMA: Add debug window 5 years ago
Connor McLaughlin a6f8dde790 CPU/Recompiler: Faster ASM dispatcher 5 years ago
Connor McLaughlin 0c1b637549 PGXP: Add initial implementation 5 years ago
Connor McLaughlin b6f871d2b9
JIT optimizations and refactoring (#675)
* CPU/Recompiler: Use rel32 call where possible for no-args

* JitCodeBuffer: Support using preallocated buffer

* CPU/Recompiler/AArch64: Use bl instead of blr for short branches

* CPU/CodeCache: Allocate recompiler buffer in program space

This means we don't need 64-bit moves for every call out of the
recompiler.

* GTE: Don't store as u16 and load as u32

* CPU/Recompiler: Add methods to emit global load/stores

* GTE: Convert class to namespace

* CPU/Recompiler: Call GTE functions directly

* Settings: Turn into a global variable

* GPU: Replace local pointers with global

* InterruptController: Turn into a global pointer

* System: Replace local pointers with global

* Timers: Turn into a global instance

* DMA: Turn into a global instance

* SPU: Turn into a global instance

* CDROM: Turn into a global instance

* MDEC: Turn into a global instance

* Pad: Turn into a global instance

* SIO: Turn into a global instance

* CDROM: Move audio FIFO to the heap

* CPU/Recompiler: Drop ASMFunctions

No longer needed since we have code in the same 4GB window.

* CPUCodeCache: Turn class into namespace

* Bus: Local pointer -> global pointers

* CPU: Turn class into namespace

* Bus: Turn into namespace

* GTE: Store registers in CPU state struct

Allows relative addressing on ARM.

* CPU/Recompiler: Align code storage to page size

* CPU/Recompiler: Fix relative branches on A64

* HostInterface: Local references to global

* System: Turn into a namespace, move events out

* Add guard pages

* Android: Fix build
5 years ago
Connor McLaughlin 57cf40d1ae Bus: Work around VS2017 bug with std::array 5 years ago
Connor McLaughlin e293c22cde DMA: Run manual channels while halted
Fixes games which have looping linked lists but still expect CD/OTC
reads to work.

Also caps the number of ticks used when looping linked lists are
present, which doesn't steal so much time from the CPU per batch.

Fixes:
 - Victory Spike
 - Magical Drop III - Yokubari Tokudai-gou!
 - Yuukyuu no Eden - The Eternal Eden
 - Loading screen in World Cup Golf - Professional Edition
5 years ago
Connor McLaughlin 7d887edf17 DMA: Write correct terminator at end of OTC
Fixes NBA Live 96.
5 years ago
Connor McLaughlin 5cd78dcab5 DMA: Fix an unlikely case where LL DMA gets stuck on
Fixes Frogger.
5 years ago
Connor McLaughlin 940b725c1d Settings: Make DMA performance parameters tweakable 5 years ago
Connor McLaughlin 9d1eb321ec DMA: Properly handle infinite linked lists, add cycle stealing
Fixes Tekken 2, Hot Wheels Turbo Racing, probably others.
5 years ago
Connor McLaughlin 07e8ddcae2 DMA: Elide intermediate copy where possible
Easy 5% performance improvement.
5 years ago
Connor McLaughlin 1757932b3a GPU: Implement FIFO and timings
This will cause a slight performance loss. I've left some knobs in which
can be tweaked to mitigate this, but the goal is to be compatible with
all games which require them.
5 years ago
Connor McLaughlin 5dbdc0b60c DMA: Remove timing events
We'll probably need to revert/re-add a variant of this when we
eventually implement chopping. But for now it simplifies things.
6 years ago
Connor McLaughlin 423f04325f SPU: Implement timing for RAM reads/writes 6 years ago
Connor McLaughlin d4ae0f13fe MDEC: Refactoring and fixes 6 years ago
Connor McLaughlin c81efb1142 DMA: Enable block splitting for linked list mode 6 years ago
Connor McLaughlin 8ef1e71ce0 DMA: Channels other than OTC should run based on request in SyncMode 0 6 years ago
Connor McLaughlin f4d172df2f DMA: Fix underflow when block_count == 0 6 years ago
Connor McLaughlin 1b9609ef61 Implement event-based scheduler instead of lock-step components 6 years ago
Connor McLaughlin c6119c210a Revert "DMA: Delay GPU transfers by block count"
This reverts commit 0639f4264f.

Breaks FF7's FMVs in the top row. Needs GPU timings.
6 years ago
Connor McLaughlin 71c1e243fe Remove YBaseLib dependency 6 years ago
Connor McLaughlin 0639f4264f DMA: Delay GPU transfers by block count
Needs real GPU timings, but fixes NFS5 in the meantime.
6 years ago
Connor McLaughlin f12b97e98b DMA: Add missing transfer_ticks to save state 6 years ago
Connor McLaughlin 30fd7a6683 DMA: Support delaying transfers
Fixes Syphon Filter 2/3.
6 years ago
Connor McLaughlin f3baee2582 DMA: Hack for self-referencing DMA loops
I need to figure how these are being generated in the first place.
6 years ago
Connor McLaughlin 29674df803 DMA: Simplify address masking 6 years ago
Connor McLaughlin 6f4cf7d5e3 System: Support changing BIOS path 6 years ago
Connor McLaughlin a76ec6fc19 Compile fixes for GCC 6 years ago
Connor McLaughlin 6b4298541c DMA: Fix DICR write breaking FMVs in FF7 6 years ago
Connor McLaughlin ec8c5d4bb6 DMA: Batch multi-word transfers together 6 years ago
Connor McLaughlin 88ec178380 DMA: Refactoring, support split block transfers 6 years ago
Connor McLaughlin 14d32c882a DMA: Kick start transfers on master enable 6 years ago
Connor McLaughlin bddbab9d60 Rename to DuckStation 6 years ago