diff options
author | hizzlekizzle | 2020-05-20 19:34:07 -0500 |
---|---|---|
committer | GitHub | 2020-05-20 19:34:07 -0500 |
commit | 67b91c4b9c44f0d973d2d6a85481e3f437ccc583 (patch) | |
tree | babc4b93857004f0c7b5aa41cc4c88ee1cc7b501 /deps/lightrec/lightrec.h | |
parent | 58bf341a7683b5a73f5e440c1df705daa4326a56 (diff) | |
parent | 6b02f240d929ffa0cb488bc6bb4d27b023e1a822 (diff) | |
download | pcsx_rearmed-67b91c4b9c44f0d973d2d6a85481e3f437ccc583.tar.gz pcsx_rearmed-67b91c4b9c44f0d973d2d6a85481e3f437ccc583.tar.bz2 pcsx_rearmed-67b91c4b9c44f0d973d2d6a85481e3f437ccc583.zip |
Merge pull request #421 from negativeExponent/lightrec_update
Update lightrec to latest upstream
Diffstat (limited to 'deps/lightrec/lightrec.h')
-rw-r--r-- | deps/lightrec/lightrec.h | 27 |
1 files changed, 15 insertions, 12 deletions
diff --git a/deps/lightrec/lightrec.h b/deps/lightrec/lightrec.h index d3d896c..d0793c0 100644 --- a/deps/lightrec/lightrec.h +++ b/deps/lightrec/lightrec.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016 Paul Cercueil <paul@crapouillou.net> + * Copyright (C) 2016-2020 Paul Cercueil <paul@crapouillou.net> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -78,12 +78,15 @@ enum mem_type { }; struct lightrec_mem_map_ops { - void (*sb)(struct lightrec_state *, u32 addr, u8 data); - void (*sh)(struct lightrec_state *, u32 addr, u16 data); - void (*sw)(struct lightrec_state *, u32 addr, u32 data); - u8 (*lb)(struct lightrec_state *, u32 addr); - u16 (*lh)(struct lightrec_state *, u32 addr); - u32 (*lw)(struct lightrec_state *, u32 addr); + void (*sb)(struct lightrec_state *, u32 opcode, + void *host, u32 addr, u8 data); + void (*sh)(struct lightrec_state *, u32 opcode, + void *host, u32 addr, u16 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); }; struct lightrec_mem_map { @@ -95,11 +98,11 @@ struct lightrec_mem_map { }; struct lightrec_cop_ops { - u32 (*mfc)(struct lightrec_state *state, u8 reg); - u32 (*cfc)(struct lightrec_state *state, u8 reg); - void (*mtc)(struct lightrec_state *state, u8 reg, u32 value); - void (*ctc)(struct lightrec_state *state, u8 reg, u32 value); - void (*op)(struct lightrec_state *state, u32 opcode); + u32 (*mfc)(struct lightrec_state *state, u32 op, u8 reg); + u32 (*cfc)(struct lightrec_state *state, u32 op, u8 reg); + void (*mtc)(struct lightrec_state *state, u32 op, u8 reg, u32 value); + void (*ctc)(struct lightrec_state *state, u32 op, u8 reg, u32 value); + void (*op)(struct lightrec_state *state, u32 op); }; struct lightrec_ops { |