Commit Graph
21 Commits
Author SHA1 Message Date
Stenzek abf3b8cc0f CPU/CodeCache: Move JIT write protect out of MemMap
Gets rid of the TLS variable, and lazily enables it.

Fixes crash on Apple Silicon, regression from
5de2b77d04.
2026-05-01 20:27:14 +10:00
Yang Liu f6d526712e Common: Add LoongArch support 2026-03-10 19:22:56 +10:00
Stenzek 37d7cd46c5 Common: Silence deprecation warnings on MacOS 2025-12-14 19:21:20 +10:00
Mark Zhuang 62c0a1e7d4 RISCV: fix flush cache for linux riscv when clang <= 18
for __builtin___clear_cache, clang-18 generates __clear_cache:
https://godbolt.org/z/K5Kx6EEhq, which is an empty function.
clang-19 can generates __riscv_flush_icache:
https://godbolt.org/z/TKe6Kh61a
2025-06-03 17:58:38 +10:00
Stenzek 972a0693b2 Memmap: Compatibility with old libc without MAP_FIXED_NOREPLACE 2024-10-18 20:48:29 +10:00
Stenzek 26b6c704f0 MemMap: Support dynamic page size selection
i.e. 4K to 16K on ARM64.
2024-10-05 19:25:23 +10:00
Stenzek 45c8f6ea56 BIOS: Make GetInfoForHash() public
And it should take a const span.
2024-10-01 21:14:43 +10:00
Stenzek 3dca598063 Log: Switch to enum class
Need to change the channel to a bitset too.. the string lookups are
horribly slow, and conflict when one is a prefix of another.
2024-09-21 22:26:06 +10:00
Stenzek 7f4e5d55db Misc: Update copyright headers 2024-09-01 22:08:31 +10:00
Stenzek e499f9052a MemMap: Fix inverted condition 2024-08-05 13:08:42 +10:00
Stenzek 6c5ffba18e MemMap: Fix object leak on fallocate() failure 2024-08-05 12:39:17 +10:00
Stenzek 02fbfae6a0 System: Add advanced 'Export Shared Memory' option
Memory map is exported as duckstation_<pid>. Previously, this only
worked on Windows, now it is extended to Linux as well.
2024-08-04 20:28:07 +10:00
Stenzek 3a83c4265c Misc: Fix a bunch of code analysis warnings
Some of which were even actual errors.
2024-08-02 23:56:07 +10:00
Stenzek be8fbafd71 CPU/CodeCache: Always dynamically allocate code buffer
Reduces .bss size.
2024-06-30 16:45:51 +10:00
Stenzek f1465ddf43 Memmap: Use Mach VM routines for memory mapping 2024-05-29 22:49:32 +10:00
Stenzek 4e922a34a7 Log: Simplify macros 2024-05-24 02:08:14 +10:00
Stenzek b6d019db66 Misc: Replace log printf calls with fmt 2024-05-24 00:29:49 +10:00
Stenzek c1381cfda6 System: Gracefully handle memory allocaion failure 2024-02-25 20:30:41 +10:00
Stenzek f05ff4103e Misc: Build fixes for Android 2023-11-04 20:11:51 +10:00
Stenzek f786138175 CPU/CodeCache: Fix crash on Apple Silicon 2023-10-24 18:30:34 +10:00
Stenzek 3c68543491 Bus: 16KB page compatibility for mmap fastmem 2023-09-23 14:14:52 +10:00