CPU/CodeCache: Fix NewRec on Apple Silicon

This commit is contained in:
Stenzek
2023-10-28 13:57:06 +10:00
parent f786138175
commit 117cbeecaa
3 changed files with 127 additions and 115 deletions

View File

@ -11,10 +11,9 @@ enum class HandlerResult
ExecuteNextHandler,
};
using Callback = HandlerResult (*)(void* exception_pc, void* fault_address, bool is_write);
using Handle = void*;
using Handler = HandlerResult (*)(void* exception_pc, void* fault_address, bool is_write);
bool InstallHandler(const void* owner, Callback callback);
bool RemoveHandler(const void* owner);
bool InstallHandler(Handler callback);
bool RemoveHandler(Handler callback);
} // namespace Common::PageFaultHandler