mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-09 02:00:20 +02:00
Moves the dummy handlers over to this library. This will end up getting used for more than the mingw test harness runner once the instruction count CI is operational.
26 lines
741 B
C++
26 lines
741 B
C++
#include "DummyHandlers.h"
|
|
|
|
namespace FEX::DummyHandlers {
|
|
thread_local FEXCore::Core::InternalThreadState *TLSThread;
|
|
|
|
void DummySignalDelegator::RegisterTLSState(FEXCore::Core::InternalThreadState *Thread) {
|
|
TLSThread = Thread;
|
|
}
|
|
|
|
void DummySignalDelegator::UninstallTLSState(FEXCore::Core::InternalThreadState *Thread) {
|
|
TLSThread = nullptr;
|
|
}
|
|
|
|
FEXCore::Core::InternalThreadState *DummySignalDelegator::GetTLSThread() {
|
|
return TLSThread;
|
|
}
|
|
|
|
fextl::unique_ptr<FEXCore::HLE::SyscallHandler> CreateSyscallHandler() {
|
|
return fextl::make_unique<DummySyscallHandler>();
|
|
}
|
|
|
|
fextl::unique_ptr<FEX::DummyHandlers::DummySignalDelegator> CreateSignalDelegator() {
|
|
return fextl::make_unique<DummySignalDelegator>();
|
|
}
|
|
}
|