about summary refs log tree commit diff stats
path: root/src/include/box64cpu.h
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-04-02 01:02:07 +0800
committerGitHub <noreply@github.com>2025-04-01 19:02:07 +0200
commit2c7a2082e624a78e42199d90f7d9fa90473c26c2 (patch)
tree2da6c474edf66752c1f36250aa8266163b4ba3e7 /src/include/box64cpu.h
parent3230265646a48abef02a5c7873490e10ffc0afb5 (diff)
downloadbox64-2c7a2082e624a78e42199d90f7d9fa90473c26c2.tar.gz
box64-2c7a2082e624a78e42199d90f7d9fa90473c26c2.zip
Introduced box64cpu.h for exported interpreter and dynarec functions (#2490)
Diffstat (limited to 'src/include/box64cpu.h')
-rw-r--r--src/include/box64cpu.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/include/box64cpu.h b/src/include/box64cpu.h
new file mode 100644
index 00000000..72df2c69
--- /dev/null
+++ b/src/include/box64cpu.h
@@ -0,0 +1,12 @@
+#ifndef __BOX64CPU_H_
+#define __BOX64CPU_H_
+
+typedef struct x64emu_s x64emu_t;
+
+int Run(x64emu_t *emu, int step);
+void EmuCall(x64emu_t* emu, uintptr_t addr);
+void StopEmu(x64emu_t* emu, const char* reason, int is32bits);
+void DynaRun(x64emu_t *emu);
+void DynaCall(x64emu_t* emu, uintptr_t addr);
+
+#endif // __BOX64CPU_H_