Commit Graph

130 Commits

Author SHA1 Message Date
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