mirror of
https://github.com/hedge-dev/XenonRecomp.git
synced 2025-06-06 18:31:03 +00:00
Push the updated PPC context header.
This commit is contained in:
parent
954d11c65e
commit
746947455d
@ -3,6 +3,7 @@
|
|||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <cstring>
|
#include <cstring>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
|
#include <csetjmp>
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
#include <x86intrin.h>
|
#include <x86intrin.h>
|
||||||
@ -17,10 +18,11 @@
|
|||||||
#define __builtin_unreachable() __assume(0)
|
#define __builtin_unreachable() __assume(0)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PPC_FUNC(x) extern "C" void x(PPCContext& __restrict__ ctx, uint8_t* base) noexcept
|
#define PPC_FUNC(x) extern "C" void x(PPCContext& __restrict__ ctx, uint8_t* base)
|
||||||
|
|
||||||
#define PPC_FUNC_PROLOGUE() \
|
#define PPC_FUNC_PROLOGUE() \
|
||||||
__builtin_assume((reinterpret_cast<size_t>(base) & 0xFFFFFFFF) == 0); \
|
__builtin_assume((reinterpret_cast<size_t>(base) & 0xFFFFFFFF) == 0); \
|
||||||
|
PPCContext env; \
|
||||||
PPCRegister temp; \
|
PPCRegister temp; \
|
||||||
PPCVRegister vtemp; \
|
PPCVRegister vtemp; \
|
||||||
uint32_t ea
|
uint32_t ea
|
||||||
|
Loading…
x
Reference in New Issue
Block a user