Commit Graph

72 Commits (43869bf74c878c8f45ac3ab3a0a7b5803ac4df85)

Author SHA1 Message Date
Connor McLaughlin 541947c6f8 CPU/CodeCache: Fix currently-invalidated blocks breaking memory states 5 years ago
Connor McLaughlin c440593788 CPU/CodeCache: Add InvalidateAll() method 5 years ago
Connor McLaughlin a542fa85d6 CPU/CodeCache: Fix crash when switching from interpreter to recompiler 5 years ago
Connor McLaughlin 5bf24265aa CPU/CodeCache: Fix compilation without recompiler 5 years ago
Connor McLaughlin c9f8828448 CPU/CodeCache: Drop block linking warning to dev level 5 years ago
Connor McLaughlin d9d41de81b CPU/Recompiler: Skip updating current_instruction_pc 5 years ago
Connor McLaughlin 21938e14c6 CPU/Recompiler: Implement block linking 5 years ago
Connor McLaughlin 033d85cd90 CPU/Recompiler: Simplify fast map addressing 5 years ago
Connor McLaughlin 7ea78ad2df CPU/CodeCache: Fix incorrect macro for code buffer size 5 years ago
Connor McLaughlin ca747d8d7a CPU/CodeCache: Support UWP 5 years ago
Connor McLaughlin 7c43f5c13e CPU/CodeCache: Fix compilation on 32-bit x86 5 years ago
Connor McLaughlin 8c7282046b CPU/CodeCache: Re-enable interpreter fallback heuristic 5 years ago
Connor McLaughlin acda42be16 CPU/Recompiler: Get rid of non-constant offsetofs 5 years ago
Connor McLaughlin e382df0d41 Support expanding RAM to 8MB (dev console) 5 years ago
Connor McLaughlin f34a048009 CPU/CodeCache: Fall back constantly-modified blocks to interpreter
Partial fix for slowdown in Colin McRae Rally 2.0.
5 years ago
Connor McLaughlin dd5277321b CPU/CachedInterpreter: Fix infinite loop when block compile fails 6 years ago
Connor McLaughlin e087e6f3a2 CPU/Recompiler: Prevent using fastmem when cache is isolated
No point even trying since it's just going to fault.
6 years ago
Connor McLaughlin 922d320523 CPU/Recompiler: Reserve whole fastmem region to avoid clashes 6 years ago
Connor McLaughlin 5bbbb8d3d5 CPU/Recompiler: Use MAP_JIT for code space on Apple Silicon 6 years ago
Connor McLaughlin bf5f53e1d1 CPU/CodeCache: Don't choke on indirect -> direct branch in delay slot 6 years ago
Connor McLaughlin 520b64e711 CPU/Recompiler: Don't zero read-only bits in mtc0
Fixes memory card error in Digimon Digital Card Battle.
6 years ago
Connor McLaughlin 701edb335a Various warning fixes 6 years ago
Connor McLaughlin c9240eea72 CPU/Recompiler: Use PGXP interpreter for fallback
Fixes holes in geometry with PGXP enabled in Threads of Fate.
6 years ago
Connor McLaughlin 02377b1a92 CPU/CodeCache: Fix possible crash on invalidate->recompile->overflow 6 years ago
Connor McLaughlin a894b295b6 CPU/CodeCache: Fix assertion failure when patching in double branch 6 years ago
Connor McLaughlin 3b23542ec9 CPU: Provide debugger/breakpoint/step functionality 6 years ago
Connor McLaughlin 5164840c25 CPU/CodeCache: Don't choke on indirect branches in delay slot
Fixes emulator crash/memory usage explosion in Shadow Master.
6 years ago
Connor McLaughlin f5ccb6ea60 CPU: Fall back to mmap'ed buffer if reprotecting code space fails 6 years ago
Connor McLaughlin bf2e38aed5 CPU/Recompiler: Implement LUT-based fastmem 6 years ago
Connor McLaughlin 0793f98c87 CPU/Recompiler: Reduce armv7 code buffer size 6 years ago
Connor McLaughlin a03bca2f72 CPU: Make fastmem a compile-time feature (support 32-bit targets) 6 years ago
Connor McLaughlin 53f81d067a CPU/CodeCache: Remove warning about executing uncompiled blocks 6 years ago
Connor McLaughlin 042bdd9c0c CPU/CodeCache: Fetch second delay slot from first branch for double branches 6 years ago
Connor McLaughlin 576914cd2c CPU/CodeCache: Backpatch code writes after they exceed 10 faults
Small performance improvement in Driver 2.
6 years ago
Connor McLaughlin 2e53bf914e CPU/CodeCache: Fix crash when jumping to invalid block in recompiler 6 years ago
Connor McLaughlin be63d893cd CPU: Use partial icache fills for non-line-aligned addresses 6 years ago
Connor McLaughlin cbc7e3d64a CPU/Recompiler: Add register allocation safety check to fastmem 6 years ago
Connor McLaughlin 7566c45f64 CPU/Recompiler: Implement fastmem 6 years ago
Connor McLaughlin a6f8dde790 CPU/Recompiler: Faster ASM dispatcher 6 years ago
Connor McLaughlin cb351a7dbd CPU: Move interrupt check out of inner-most exec loop 6 years ago
Connor McLaughlin 19d6037b99 CPU: Implement instruction cache simulation
Implemented for all execution modes. Disabled by default in the cached
interpreter and recompiler, always enabled in the pure interpreter.
6 years ago
Connor McLaughlin d3f530f96e CPU/CachedInterpreter: Very slight optmization 6 years ago
Connor McLaughlin 1d4d1d06a7 CPU/Recompiler: Disable static code buffer on macOS/Haiku 6 years ago
kwyxz 31695c4ff7
Haiku port of duckstation libretro core (#716)
* Haiku build 1st attempt

* fix load on Haiku

* Removed debugging flags

* Added a couple ifndef
6 years ago
Connor McLaughlin 2e9f656546 CPU: Implement PGXP CPU Mode
This is *very* slow. You don't want to enable it if you don't need it.
It is also incompatible with the recompiler and will disable it if the
option is enabled.
6 years ago
Connor McLaughlin 5b9db71b87 CPU/Recompiler: Fix mid-block software interrupts not updating pc
Fixes Need for Speed: High Stakes hanging at boot.
6 years ago
Connor McLaughlin 1d5f810a4b CPU/Recompiler: Disable memory access exceptions by default
This means it'll no longer pass amidog's CPU test in the default config.
But no games rely on this. You can enable it in advanced options if you
want to pass the CPU test.
6 years ago
Connor McLaughlin b1377fe0d9 CPU/Recompiler: Add a fast block lookup array
Up to 15% perf improvement.
6 years ago
Connor McLaughlin f6e88353eb CPU/Recompiler: Make generated code invariant to virtual PC 6 years ago
Connor McLaughlin 2885d2e547 CPU/CodeCache: Hopefully fix 32-bit compile errors 6 years ago