rpcsx/rpcs3/Emu/Cell
Elad 575a245f8d
IDM: Implement lock-free smart pointers (#16403)
Replaces `std::shared_pointer` with `stx::atomic_ptr` and `stx::shared_ptr`.

Notes to programmers:

* This pr kills the use of `dynamic_cast`, `std::dynamic_pointer_cast` and `std::weak_ptr` on IDM objects, possible replacement is to save the object ID on the base object, then use idm::check/get_unlocked to the destination type via the saved ID which may be null. Null pointer check is how you can tell type mismatch (as dynamic cast) or object destruction (as weak_ptr locking).
* Double-inheritance on IDM objects should be used with care, `stx::shared_ptr` does not support constant-evaluated pointer offsetting to parent/child type.
* `idm::check/get_unlocked` can now be used anywhere.

Misc fixes:
* Fixes some segfaults with RPCN with interaction with IDM.
* Fix deadlocks in access violation handler due locking recursion.
* Fixes race condition in process exit-spawn on memory containers read.
* Fix bug that theoretically can prevent RPCS3 from booting - fix `id_manager::typeinfo` comparison to compare members instead of `memcmp` which can fail spuriously on padding bytes.
* Ensure all IDM inherited types of base, either has `id_base` or `id_type` defined locally, this allows to make getters such as `idm::get_unlocked<lv2_socket, lv2_socket_raw>()` which were broken before. (requires save-states invalidation)
* Removes broken operator[] overload of `stx::shared_ptr` and `stx::single_ptr` for non-array types.
2024-12-22 20:59:48 +02:00
..
lv2 IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
Modules IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
Common.h fix some warnings 2023-12-30 19:07:35 +01:00
ErrorCodes.h Remove whitespace 2023-02-15 08:58:02 +01:00
MFC.cpp SPU/MFC: Format command more consistently 2023-07-27 02:50:01 +03:00
MFC.h SPU/MFC: Add block has to command history 2023-10-24 22:14:12 +03:00
PPCDisAsm.h PPU DisAsm: Fixup conditional indirect branches disasm 2024-03-20 12:48:31 +02:00
PPUAnalyser.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
PPUAnalyser.h IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
PPUCallback.h Fix HLE PPU callback stack arguments 2024-11-23 17:01:25 +02:00
PPUDisAsm.cpp PPU DisAsm: Fixup conditional indirect branches disasm 2024-03-20 12:48:31 +02:00
PPUDisAsm.h Initial Linux Aarch64 support 2022-01-15 06:48:04 +03:00
PPUFunction.cpp Savestates Support For PS3 Emulation (#10478) 2022-07-04 16:02:17 +03:00
PPUFunction.h More constexpr 2024-11-16 15:10:20 +01:00
PPUInterpreter.cpp Fix compiler warnings about unused args for aarch64 2024-08-20 05:18:53 +03:00
PPUInterpreter.h Initial Linux Aarch64 support 2022-01-15 06:48:04 +03:00
PPUModule.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
PPUModule.h cellDmuxPamf: add module + stubs 2024-11-23 17:01:25 +02:00
PPUOpcodes.h PPU LLVM/RawSPU: Implement MMIO violation elimination pass 2023-07-06 19:46:36 +03:00
PPUThread.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
PPUThread.h PPU: Notify SPUs while waiting for its own state 2024-11-30 18:06:34 +02:00
PPUTranslator.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
PPUTranslator.h IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
RawSPUThread.cpp RawSpu: Optimize START register/commands 2024-10-24 21:03:06 +03:00
RawSPUThread.h Migration to named_thread<> 2018-10-19 22:22:35 +03:00
SPUAnalyser.cpp Initial Linux Aarch64 support 2022-01-15 06:48:04 +03:00
SPUAnalyser.h PPU Analyzer: Fixup 2023-09-06 06:53:10 +03:00
SPUASMJITRecompiler.cpp Minor fs::file usage fixes 2024-06-10 13:45:23 +03:00
SPUASMJITRecompiler.h Initial Linux Aarch64 support 2022-01-15 06:48:04 +03:00
SPUCommonRecompiler.cpp Progress Dialog: Fix recursion and concurrency use of text updates 2024-11-16 12:22:23 +02:00
SPUDisAsm.cpp SPU/DisAsm: Fix constant propagation with non-GPR-writing instructions 2023-09-05 06:20:57 +03:00
SPUDisAsm.h SPU LLVM: Initial precompilation of tail-calls 2023-09-02 12:31:11 +03:00
SPUInterpreter.cpp Fix compiler warnings about unused args for aarch64 2024-08-20 05:18:53 +03:00
SPUInterpreter.h Initial Linux Aarch64 support 2022-01-15 06:48:04 +03:00
SPULLVMRecompiler.cpp SPU LLVM: Recognize ROTYQBYI and ROTQBI rotation pattern (#16409) 2024-12-22 10:29:15 +02:00
SPUOpcodes.h SPU LLVM Precompilation 2023-08-28 09:03:56 +03:00
SPURecompiler.h Fix std::basic_string warnings (#16261) 2024-11-11 21:54:44 +02:00
SPUThread.cpp IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
SPUThread.h IDM: Implement lock-free smart pointers (#16403) 2024-12-22 20:59:48 +02:00
timers.hpp cellCrossControllerInitialize: add dialog 2022-07-13 19:12:46 +02:00