mirror of
https://github.com/FEX-Emu/FEX.git
synced 2026-10-06 17:00:19 +02:00
These are a Linux construct and should live here. Removes a weird passthrough API from FEXCore and keeps it in the frontend instead. This isn't even typically allocated in a real setup, as it's only a fallback for if VDSO isn't loaded. The CallbackReturn function stays in FEXCore because it would have caused an API in the other direction instead.
26 lines
374 B
C++
26 lines
374 B
C++
// SPDX-License-Identifier: MIT
|
|
/*
|
|
$info$
|
|
tags: glue|x86-guest-code
|
|
$end_info$
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
namespace FEXCore {
|
|
class X86GeneratedCode final {
|
|
public:
|
|
X86GeneratedCode();
|
|
~X86GeneratedCode();
|
|
|
|
uint64_t CallbackReturn {};
|
|
|
|
private:
|
|
void* CodePtr {};
|
|
void* AllocateGuestCodeSpace(size_t Size);
|
|
};
|
|
} // namespace FEXCore
|