mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-09 14:00:20 +02:00
No functional change here.
- CoreRunningMode enum and variable wasn't used anymore.
- Code was moved to the frontend
- CustomCPUFactory wasn't used anymore
- All special signal handling and various features were moved to
TestHarnessRunner
- We also don't want to support actual custom CPU cores.
- TestHarnessRunner just runs as a host runner if compiled on an
x86-64 device if vixl sim isn't enabled now.
- Removes the Core config option entirely.
- Moves VDSOPointers struct to the frontend
- Every use of this lives in the Linux frontend instead now
29 lines
827 B
C++
29 lines
827 B
C++
// SPDX-License-Identifier: MIT
|
|
#pragma once
|
|
#include <FEXCore/IR/IR.h>
|
|
#include <FEXCore/fextl/vector.h>
|
|
|
|
#include "LinuxSyscalls/Syscalls.h"
|
|
|
|
namespace FEX::VDSO {
|
|
using MapperFn = std::function<void*(void* addr, size_t length, int prot, int flags, int fd, off_t offset)>;
|
|
struct VDSOMapping {
|
|
void* VDSOBase {};
|
|
size_t VDSOSize {};
|
|
void* OptionalSigReturnMapping {};
|
|
size_t OptionalMappingSize {};
|
|
};
|
|
|
|
struct VDSOSigReturn {
|
|
void* VDSO_kernel_sigreturn;
|
|
void* VDSO_kernel_rt_sigreturn;
|
|
};
|
|
VDSOMapping LoadVDSOThunks(bool Is64Bit, FEX::HLE::SyscallHandler* const Handler);
|
|
void UnloadVDSOMapping(const VDSOMapping& Mapping);
|
|
|
|
uint64_t GetVSyscallEntry(const void* VDSOBase);
|
|
|
|
const std::span<FEXCore::IR::ThunkDefinition> GetVDSOThunkDefinitions();
|
|
const VDSOSigReturn& GetVDSOSymbols();
|
|
} // namespace FEX::VDSO
|