#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) \
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;
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);