mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-12 05:00:39 +02:00
FEXCore: Cleanup pointers structure
There's no longer a distinction between AArch64 and x86 and everything effectively falls under "Common" now. This means flattening the entire structure just cleans it up. NFC. (Although instcountCI will update because of a couple pointer offsets changing)
This commit is contained in:
11 files changed
+152
-179
No files matched your search
@@ -937,13 +937,13 @@ NTSTATUS ThreadInit() {
|
||||
Frame->State.cs_cached = FEXCore::Core::CPUState::CalculateGDTBase(GDT);
|
||||
|
||||
FEX::Windows::CallRetStack::InitializeThread(Thread);
|
||||
Thread->CurrentFrame->Pointers.Common.ExitFunctionEC = reinterpret_cast<uintptr_t>(&ExitFunctionEC);
|
||||
Thread->CurrentFrame->Pointers.ExitFunctionEC = reinterpret_cast<uintptr_t>(&ExitFunctionEC);
|
||||
CPUArea.StateFrame() = Thread->CurrentFrame;
|
||||
|
||||
uint64_t EnterEC = Thread->CurrentFrame->Pointers.Common.DispatcherLoopTopEnterEC;
|
||||
uint64_t EnterEC = Thread->CurrentFrame->Pointers.DispatcherLoopTopEnterEC;
|
||||
CPUArea.DispatcherLoopTopEnterEC() = EnterEC;
|
||||
|
||||
uint64_t EnterECFillSRA = Thread->CurrentFrame->Pointers.Common.DispatcherLoopTopEnterECFillSRA;
|
||||
uint64_t EnterECFillSRA = Thread->CurrentFrame->Pointers.DispatcherLoopTopEnterECFillSRA;
|
||||
CPUArea.DispatcherLoopTopEnterECFillSRA() = EnterECFillSRA;
|
||||
|
||||
CPUArea.ContextAmd64() = {.ContextFlags = CONTEXT_CONTROL | CONTEXT_SEGMENTS | CONTEXT_INTEGER | CONTEXT_FLOATING_POINT,
|
||||
|
||||
Reference in new issue
Block a user