mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-19 17:10:37 +00:00
Patch extrq
(#943)
* Use a singleton for instruction decoding * Use singleton class * Patch `EXTRQ` * Fixup signal context functions * Update CMakeLists.txt --------- Co-authored-by: georgemoralis <giorgosmrls@gmail.com>
This commit is contained in:
parent
5a8e8f5936
commit
5799091044
9 changed files with 371 additions and 67 deletions
|
@ -8,8 +8,8 @@
|
|||
|
||||
namespace Core {
|
||||
|
||||
using AccessViolationHandler = bool (*)(void* code_address, void* fault_address, bool is_write);
|
||||
using IllegalInstructionHandler = bool (*)(void* code_address);
|
||||
using AccessViolationHandler = bool (*)(void* context, void* fault_address);
|
||||
using IllegalInstructionHandler = bool (*)(void* context);
|
||||
|
||||
/// Receives OS signals and dispatches to the appropriate handlers.
|
||||
class SignalDispatch {
|
||||
|
@ -28,10 +28,10 @@ public:
|
|||
}
|
||||
|
||||
/// Dispatches an access violation signal, returning whether it was successfully handled.
|
||||
bool DispatchAccessViolation(void* code_address, void* fault_address, bool is_write) const;
|
||||
bool DispatchAccessViolation(void* context, void* fault_address) const;
|
||||
|
||||
/// Dispatches an illegal instruction signal, returning whether it was successfully handled.
|
||||
bool DispatchIllegalInstruction(void* code_address) const;
|
||||
bool DispatchIllegalInstruction(void* context) const;
|
||||
|
||||
private:
|
||||
template <typename T>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue