mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-08 15:00:18 +02:00
FEXCore: Moves CPUBackend definition internal
This is no longer necessary to be part of the public API. Moves the header internally. Needed to pass through `IsAddressInCodeBuffer` from CPUBackend through the Context object, but otherwise no functional change.
This commit is contained in:
16 files changed
+34
-17
No files matched your search
@@ -116,7 +116,8 @@ namespace {
|
||||
}
|
||||
|
||||
bool IsAddressInJit(uint64_t Address) {
|
||||
return GetTLS().ThreadState()->CPUBackend->IsAddressInCodeBuffer(Address);
|
||||
auto Thread = GetTLS().ThreadState();
|
||||
return Thread->CTX->IsAddressInCodeBuffer(Thread, Address);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -266,12 +267,13 @@ namespace Context {
|
||||
}
|
||||
|
||||
bool HandleUnalignedAccess(CONTEXT *Context) {
|
||||
if (!GetTLS().ThreadState()->CPUBackend->IsAddressInCodeBuffer(Context->Pc)) {
|
||||
auto Thread = GetTLS().ThreadState();
|
||||
if (!Thread->CTX->IsAddressInCodeBuffer(Thread, Context->Pc)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
FEX_CONFIG_OPT(ParanoidTSO, PARANOIDTSO);
|
||||
const auto Result = FEXCore::ArchHelpers::Arm64::HandleUnalignedAccess(GetTLS().ThreadState(), ParanoidTSO(), Context->Pc, &Context->X0);
|
||||
const auto Result = FEXCore::ArchHelpers::Arm64::HandleUnalignedAccess(Thread, ParanoidTSO(), Context->Pc, &Context->X0);
|
||||
if (!Result.first) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user