X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=deps%2Flightrec%2Flightrec.h;h=3be8e0a9adda0736f377b9ca3cacd3689461d7da;hb=99104c0456c7c923f40a474c1cbefb89a092b966;hp=9779951b355b5635cb801e52bcc9ea4efdf19d49;hpb=03b78a3bf48813202e01149ae0b3c5c1f01efb4c;p=pcsx_rearmed.git diff --git a/deps/lightrec/lightrec.h b/deps/lightrec/lightrec.h index 9779951b..3be8e0a9 100644 --- a/deps/lightrec/lightrec.h +++ b/deps/lightrec/lightrec.h @@ -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 {