lightrec: handle a case of ignored MAP_FIXED_NOREPLACE
[pcsx_rearmed.git] / deps / lightrec / lightrec.h
index 9779951..4cda1a0 100644 (file)
@@ -63,6 +63,7 @@ struct lightrec_mem_map;
 #define LIGHTREC_EXIT_SYSCALL  (1 << 2)
 #define LIGHTREC_EXIT_SEGFAULT (1 << 3)
 #define LIGHTREC_EXIT_NOMEM    (1 << 4)
+#define LIGHTREC_EXIT_UNKNOWN_OP       (1 << 5)
 
 /* Unsafe optimizations flags */
 #define LIGHTREC_OPT_INV_DMA_ONLY      (1 << 0)
@@ -94,6 +95,9 @@ struct lightrec_mem_map_ops {
        u8 (*lb)(struct lightrec_state *, u32 opcode, void *host, u32 addr);
        u16 (*lh)(struct lightrec_state *, u32 opcode, void *host, u32 addr);
        u32 (*lw)(struct lightrec_state *, u32 opcode, void *host, u32 addr);
+       u32 (*lwu)(struct lightrec_state *, u32 opcode, void *host, u32 addr);
+       void (*swu)(struct lightrec_state *, u32 opcode,
+                   void *host, u32 addr, u32 data);
 };
 
 struct lightrec_mem_map {