mirror of
https://git.suyu.dev/suyu/dynarmic.git
synced 2026-01-05 14:08:17 +01:00
First Commit
This commit is contained in:
commit
65df15633d
55 changed files with 18405 additions and 0 deletions
29
src/interface/interface.h
Normal file
29
src/interface/interface.h
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/* This file is part of the dynarmic project.
|
||||
* Copyright (c) 2016 MerryMage
|
||||
* This software may be used and distributed according to the terms of the GNU
|
||||
* General Public License version 2 or any later version.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "common/common_types.h"
|
||||
|
||||
namespace Dynarmic {
|
||||
|
||||
struct UserCallbacks {
|
||||
u8 (*MemoryRead8)(u32 vaddr);
|
||||
u16 (*MemoryRead16)(u32 vaddr);
|
||||
u32 (*MemoryRead32)(u32 vaddr);
|
||||
u64 (*MemoryRead64)(u32 vaddr);
|
||||
|
||||
void (*MemoryWrite8)(u32 vaddr, u8 value);
|
||||
void (*MemoryWrite16)(u32 vaddr, u16 value);
|
||||
void (*MemoryWrite32)(u32 vaddr, u32 value);
|
||||
void (*MemoryWrite64)(u32 vaddr, u64 value);
|
||||
|
||||
void (*InterpreterFallback)(u32 pc, void* jit_state);
|
||||
|
||||
bool (*SoftwareInterrupt)(u32 swi);
|
||||
};
|
||||
|
||||
} // namespace Dynarmic
|
||||
Loading…
Add table
Add a link
Reference in a new issue