From 893aa29191fe3aeef808102f1827552ba2c2ccf5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Henrik=20Rydg=C3=A5rd?= Date: Tue, 14 Jul 2020 10:34:40 +0200 Subject: [PATCH] Yet another iOS buildfix attempt --- Core/MemMap.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/Core/MemMap.cpp b/Core/MemMap.cpp index c935d6b99b..b20a39d783 100644 --- a/Core/MemMap.cpp +++ b/Core/MemMap.cpp @@ -489,6 +489,10 @@ void Memset(const u32 _Address, const u8 _iValue, const u32 _iLength) { CBreakPoints::ExecMemCheck(_Address, true, _iLength, currentMIPS->pc); } +// We do not support crash catching on UWP and iOS. +// On iOS, the sigcontext struct seems to be missing?? +#if !PPSSPP_PLATFORM(IOS) && !PPSSPP_PLATFORM(UWP) + bool HandleFault(uintptr_t hostAddress, void *ctx) { SContext *context = (SContext *)ctx; const uint8_t *codePtr = (uint8_t *)(context->CTX_PC); @@ -575,4 +579,13 @@ bool HandleFault(uintptr_t hostAddress, void *ctx) { return true; } +#else + +bool HandleFault(uintptr_t hostAddress, void *ctx) { + ERROR_LOG(MEMMAP, "Exception handling not supported"); + return false; +} + +#endif + } // namespace