| 349 | static std::optional<FEX::Windows::TSOHandlerConfig> HandlerConfig; |
| 350 | |
| 351 | bool HandleUnalignedAccess(CONTEXT* Context) { |
| 352 | auto Thread = GetTLS().ThreadState(); |
| 353 | if (!Thread->CTX->IsAddressInCodeBuffer(Thread, Context->Pc)) { |
| 354 | return false; |
| 355 | } |
| 356 | |
| 357 | const auto Result = |
| 358 | FEXCore::ArchHelpers::Arm64::HandleUnalignedAccess(Thread, HandlerConfig->GetUnalignedHandlerType(), Context->Pc, &Context->X0); |
| 359 | Context->Pc += Result.value_or(0); |
| 360 | return Result.has_value(); |
| 361 | } |
| 362 | |
| 363 | void LockJITContext() { |
| 364 | uint32_t Expected = GetTLS().ControlWord().load(), New; |