mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-13 20:00:44 +02:00
ArchHelpers: Remove pair usage in unaligned handler
It's being treated like optional, where a value means it has been handled, and no value means it hasn't been handled. Stop using pair in this case.
This commit is contained in:
7 files changed
+43
-52
No files matched your search
@@ -335,12 +335,8 @@ static bool HandleUnalignedAccess(ARM64_NT_CONTEXT& Context) {
|
||||
FEXCORE_PROFILE_INSTANT_INCREMENT(Thread, AccumulatedSIGBUSCount, 1);
|
||||
const auto Result =
|
||||
FEXCore::ArchHelpers::Arm64::HandleUnalignedAccess(Thread, HandlerConfig->GetUnalignedHandlerType(), Context.Pc, &Context.X0);
|
||||
if (!Result.first) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Context.Pc += Result.second;
|
||||
return true;
|
||||
Context.Pc += Result.value_or(0);
|
||||
return Result.has_value();
|
||||
}
|
||||
|
||||
static void LoadStateFromECContext(FEXCore::Core::InternalThreadState* Thread, CONTEXT& Context) {
|
||||
|
||||
Reference in new issue
Block a user