Commit Graph

136 Commits

Author SHA1 Message Date
Henrik Rydgård
0bc7854062 Android: Don't assert on failed Find4GBBase 2023-01-12 01:18:52 +01:00
Unknown W. Brackets
0496ca32ff Global: Cleanup some minor includes and typos. 2022-12-27 08:33:07 -08:00
Unknown W. Brackets
e49668eea7 SaveState: Correct missing switch case warnings. 2022-12-04 07:57:30 -08:00
Unknown W. Brackets
3a372aa615 HLE: Remove misc usage of WriteStruct().
Prefer PSPPointer and notifying.
2022-09-03 10:44:11 -07:00
Henrik Rydgård
e6403d7157 Split GetPointer into two versions, to help with const correctness 2022-07-24 13:26:19 +02:00
Unknown W. Brackets
b8ab7f39df jit: Lock around changes to the jit pointer. 2021-11-28 10:04:22 -08:00
Henrik Rydgård
6c51dabe9a Somewhat improved error checking in MemArena. 2021-07-07 19:01:42 +02:00
Henrik Rydgård
3be5c7bd9a Make the minimum items per thread explicit. Found some bugs, optional arguments are evil. 2021-06-12 21:21:28 +02:00
Henrik Rydgård
73871b9b7e Implement new thread manager, port stuff to it. 2021-06-12 13:03:53 +02:00
Unknown W. Brackets
f987c715aa MemMap: Map 0xC0000000 into virtual memory.
Technically, it should be 0xA0000000, but that causes problems for how we
manage 32-bit address space.  This at least makes things consistent.
2021-04-23 23:21:51 -07:00
Unknown W. Brackets
32ea8734fb MemMap: Cleanup memory mirror pointers. 2021-04-23 22:43:21 -07:00
Unknown W. Brackets
4f96169357 Core: Init memory on multiple threads.
Also init volatile at the same time for consistency.
2021-04-16 00:53:50 -07:00
Unknown W. Brackets
b2f3f06768 Common: Set a min size on threadpool work chunks.
This should avoid slicing loops, etc. into too many chunks.  Generalize
the memcpy a bit.
2021-04-15 23:59:02 -07:00
Unknown W. Brackets
b2d5f19e5e SaveState: Use memmove for the copy. 2021-04-12 18:16:57 -07:00
Unknown W. Brackets
c5729bbd5e SaveState: Use SIMD to copy RAM faster.
We know its size and base are typically aligned, so abuse those facts.
2021-04-12 17:37:48 -07:00
Unknown W. Brackets
3400e6e517 SaveState: Copy RAM using threads. 2021-04-12 17:37:48 -07:00
Henrik Rydgård
797cc41a1c Remove std::string from memblockinfo 2021-03-13 17:12:30 +01:00
Unknown W. Brackets
5119d79082 Build: Remove IOS define. 2021-03-02 21:04:03 -08:00
Unknown W. Brackets
88e2b9b740 Debugger: Notate memset tags directly. 2021-02-15 15:01:23 -08:00
Unknown W. Brackets
f7740edc6d Debugger: Add more metadata for memory usage. 2021-02-15 15:01:21 -08:00
Henrik Rydgård
dd7983c8dd Fix a bad check, causing masked memory to fail on non-32-bit platforms even if desired. 2020-11-02 23:11:44 +01:00
Unknown W. Brackets
2714d59ceb Core: Fix memory size check.
It can be 93 MB, just not larger.
2020-09-27 12:54:34 -07:00
Unknown W. Brackets
b8342fb8ec SaveState: Rename ChunkFile files to Serialize.
Makes more sense and less weird than ChunkFileDoMap, etc.
2020-08-10 08:04:05 +00:00
Unknown W. Brackets
4b4e3432cd SaveState: Split Do() into a separate header. 2020-08-10 08:03:41 +00:00
Henrik Rydgård
0829543987 Third part of getting rid of PanicAlert 2020-07-19 20:34:02 +02:00
Henrik Rydgård
c5e0b799d9 Remove category from _assert_msg_ functions. We don't filter these by category anyway.
Fixes the inconsistency where we _assert_ didn't take a category but
_assert_msg_ did.
2020-07-19 20:33:25 +02:00
Henrik Rydgård
626d173d10 Split the fault handling from MemMap.cpp to MemFault.cpp. 2020-07-15 12:12:57 +02:00
Henrik Rydgård
cb1e0438f9 Fix 2020-07-14 14:39:19 +02:00
Henrik Rydgård
056999a691 Refactor MachineContext.h to reduce ifdefs elsewhere.
Also fixes Windows on ARM64 (at least the build).
2020-07-14 13:47:25 +02:00
Henrik Rydgård
f62df94ab2 There's no sigcontext on 64-bit iOS either, apparently. 2020-07-14 11:39:31 +02:00
Henrik Rydgård
893aa29191 Yet another iOS buildfix attempt 2020-07-14 10:34:40 +02:00
Henrik Rydgård
f6cc45a96a Another iOS buildfix attempt 2020-07-14 09:31:58 +02:00
Henrik Rydgård
6f97c3d422 Various platform buildfixes 2020-07-14 09:25:59 +02:00
Henrik Rydgård
a56f391713 Make fastmem memory exceptions report the exceptions to Core correctly. 2020-07-14 09:25:45 +02:00
Henrik Rydgard
465367bf1b iOS buildfix attempt 2020-07-14 09:25:45 +02:00
Henrik Rydgard
430c3ee6a3 HandleFault: Add missing nullcheck 2020-07-14 09:25:45 +02:00
Henrik Rydgard
fdcf4f06f2 Add x64Analyzer to Android.mk. Some minor cleanup 2020-07-14 09:25:45 +02:00
Henrik Rydgard
c988d42b04 ARM/ARM64 instruction analysis, hook up to handler 2020-07-14 09:25:45 +02:00
Henrik Rydgard
aa802ecc0f Skip bad reads/writes by the guest executable. 2020-07-14 09:25:45 +02:00
Henrik Rydgard
1fce6de8b1 Simple exception handler so we can ignore accesses that happen within the PSP memory space. 2020-07-14 09:25:45 +02:00
Unknown W. Brackets
b4496f1975 Core: Move config enums to separate file.
These are a bit strewn about and there are constants that aren't
consistently used, which just adds confusion.
2018-06-23 10:59:18 -07:00
Unknown W. Brackets
3193772e78 Debugger: Use a lock for memory reallocs.
Simpler this way, no need to remember to lock memory.
2018-06-08 06:59:18 -07:00
Unknown W. Brackets
395ac32d63 Debugger: Run memory breakpoints on mobile. 2018-06-06 17:31:56 -07:00
Henrik Rydgård
100cf60bc7 Memory::Memset: IsValidRange is a better solution. 2017-11-30 23:18:20 +01:00
Henrik Rydgård
20e93515be Add sanity check in Memory::Memset 2017-11-30 16:49:14 +01:00
Henrik Rydgård
4bad28046b UWP: Save memory by only committing the ranges we need, instead of doing a giant allocation. 2017-03-23 10:02:29 +01:00
Henrik Rydgard
d58ee6670e UWP: Fix audio sample rate, savestates, memory leak. 2017-03-23 10:02:28 +01:00
Henrik Rydgard
ff2b6b3fca Assorted cleanup, UWP memory map fixes. PSPFlower runs in both 32-bit and 64-bit. 2017-03-23 10:02:28 +01:00
Unknown W. Brackets
88780fe1dd Cut down on some logspam. 2017-03-19 07:44:44 -07:00
Henrik Rydgård
32a71c4c74 Fix typo, preprocessor warning 2017-03-10 18:02:41 +01:00