mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-16 20:00:54 +02:00
The vast majoirty of syscalls don't need anything in thread or frame. So lets save an indirection for all those syscalls. Most of the syscalls which do need Thread (or CTX via Thread are in Thread.cpp or Memory.cpp These have all been modifiy to fetch Thread from Frame
26 lines
663 B
C++
26 lines
663 B
C++
#pragma once
|
|
#include <stdint.h>
|
|
|
|
namespace FEXCore::Core {
|
|
struct InternalThreadState;
|
|
struct CpuStateFrame;
|
|
}
|
|
|
|
namespace FEX::HLE::x32 {
|
|
// We must define this ourselves since it doesn't exist on non-x86 platforms
|
|
struct user_desc {
|
|
uint32_t entry_number;
|
|
uint32_t base_addr;
|
|
uint32_t limit;
|
|
uint32_t seg_32bit : 1;
|
|
uint32_t contents : 2;
|
|
uint32_t read_exec_only : 1;
|
|
uint32_t limit_in_pages : 1;
|
|
uint32_t seg_not_present : 1;
|
|
uint32_t useable : 1;
|
|
};
|
|
|
|
uint64_t SetThreadArea(FEXCore::Core::CpuStateFrame *Frame, void *tls);
|
|
void AdjustRipForNewThread(FEXCore::Core::CpuStateFrame *Frame);
|
|
}
|