|
ReXGlue SDK
|
#include <csetjmp>#include <cstddef>#include <span>#include <rex/platform.h>#include <rex/types.h>Go to the source code of this file.
Classes | |
| struct | PPCFuncMapping |
Namespaces | |
| namespace | rex |
| namespace | rex::ppc |
Macros | |
| #define | REX_FUNC(x) |
| #define | REX_EXTERN(x) |
| #define | REX_RECOMPILED_CODE_SECTION __attribute__((section("rexguest"))) |
| #define | REX_RECOMPILED_CODE() |
Typedefs | |
| using | PPCFunc = void(PPCContext& ctx, u8* base) |
Functions | |
| REX_PPC_API PPCFunc * | rex::ppc::ResolveFunction (u32 guest_address) |
| REX_PPC_API void | rex::ppc::Trap (PPCContext &ctx, u8 *base, u16 trap_type) |
| REX_PPC_API std::jmp_buf & | rex::ppc::GetJumpBuffer (u32 address) |
| REX_PPC_API void | rex::ppc::LongJump (u32 address, int value) |
| REX_PPC_API void | rex::ppc::UnimplementedInstruction (const char *opcode) |
| REX_PPC_API bool | rex::ppc::AddRecompiledCode (std::span< const u8 > code) |
| REX_PPC_API void | rex::ppc::RemoveRecompiledCode (std::span< const u8 > code) |
| REX_PPC_API bool | rex::ppc::IsRecompiledCode (u64 address) |
Variables | |
| const PPCFuncMapping | kPPCFuncMappings [] |
| const ::rex::u8 | __start_rexguest [] |
| const ::rex::u8 | __stop_rexguest [] |
| #define REX_EXTERN | ( | x | ) |
Declares a recompiled function with C linkage.
| x | The C++ symbol the generated code defines and calls. |
| #define REX_FUNC | ( | x | ) |
Declares a recompiled function with no linkage specifier.
| x | The C++ symbol the generated code defines and calls. |
| #define REX_RECOMPILED_CODE | ( | ) |
Returns the recompiled code section of the image that expands it.
| #define REX_RECOMPILED_CODE_SECTION __attribute__((section("rexguest"))) |
Places a function in the recompiled code section, where a stop may redirect a thread.
| const ::rex::u8 __start_rexguest[] |
The first byte of the recompiled code section, null when the image has none.
| const ::rex::u8 __stop_rexguest[] |
The byte past the end of the recompiled code section, null when the image has none.
|
extern |
Guest to host function mappings, defined by the generated code.