Push the updated PPC context header.

This commit is contained in:
Skyth 2024-09-24 14:48:50 +03:00
parent 954d11c65e
commit 746947455d

View File

@ -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