gpu_neon: revive the old tests
[pcsx_rearmed.git] / deps / lightrec / lightrec-private.h
index 456d7af..920008c 100644 (file)
 #include <immintrin.h>
 #endif
 
+#include <inttypes.h>
+#include <stdint.h>
+
+#define X32_FMT "0x%08"PRIx32
+#define PC_FMT "PC "X32_FMT
+
 #define ARRAY_SIZE(x) (sizeof(x) ? sizeof(x) / sizeof((x)[0]) : 0)
 
 #define GENMASK(h, l) \
@@ -171,9 +177,9 @@ struct lightrec_state {
        u32 exit_flags;
        u32 old_cycle_counter;
        u32 cycles_per_op;
+       void *c_wrapper;
        struct block *dispatcher, *c_wrapper_block;
        void *c_wrappers[C_WRAPPERS_COUNT];
-       void *wrappers_eps[C_WRAPPERS_COUNT];
        struct blockcache *block_cache;
        struct recompiler *rec;
        struct lightrec_cstate *cstate;
@@ -196,6 +202,9 @@ struct lightrec_state {
        void *code_lut[];
 };
 
+#define lightrec_offset(ptr) \
+       offsetof(struct lightrec_state, ptr)
+
 u32 lightrec_rw(struct lightrec_state *state, union code op, u32 addr,
                u32 data, u32 *flags, struct block *block, u16 offset);