mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-07 06:58:15 +01:00
callbacks: Read code using MemoryReadCode callback
This commit is contained in:
parent
80b2efbea7
commit
36082087de
10 changed files with 45 additions and 23 deletions
|
|
@ -16,6 +16,10 @@ class Jit;
|
|||
|
||||
/// These function pointers may be inserted into compiled code.
|
||||
struct UserCallbacks {
|
||||
// All reads through this callback are 4-byte aligned.
|
||||
// Memory must be interpreted as little endian.
|
||||
std::uint32_t (*MemoryReadCode)(std::uint32_t vaddr);
|
||||
|
||||
// Reads through these callbacks may not be aligned.
|
||||
// Memory must be interpreted as if ENDIANSTATE == 0, endianness will be corrected by the JIT.
|
||||
std::uint8_t (*MemoryRead8)(std::uint32_t vaddr);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue