MCPcopy Create free account
hub / github.com/FEX-Emu/FEX / HandleUnalignedAccess

Function HandleUnalignedAccess

Source/Windows/WOW64/Module.cpp:351–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349static std::optional<FEX::Windows::TSOHandlerConfig> HandlerConfig;
350
351bool 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
363void LockJITContext() {
364 uint32_t Expected = GetTLS().ControlWord().load(), New;

Callers 3

SignalDelegatorMethod · 0.50
VectoredExceptionHandlerFunction · 0.50

Calls 3

GetTLSFunction · 0.85
IsAddressInCodeBufferMethod · 0.45

Tested by 1

VectoredExceptionHandlerFunction · 0.40