libretro: adjust psxclock description
[pcsx_rearmed.git] / deps / lightrec / lightrec.h
index 9779951..3be8e0a 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)
@@ -86,14 +87,17 @@ enum psx_map {
 
 struct lightrec_mem_map_ops {
        void (*sb)(struct lightrec_state *, u32 opcode,
-                  void *host, u32 addr, u8 data);
+                  void *host, u32 addr, u32 data);
        void (*sh)(struct lightrec_state *, u32 opcode,
-                  void *host, u32 addr, u16 data);
+                  void *host, u32 addr, u32 data);
        void (*sw)(struct lightrec_state *, u32 opcode,
                   void *host, u32 addr, u32 data);
        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 {