about summary refs log tree commit diff stats
path: root/src/emu
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-04-02 03:12:15 +0800
committerGitHub <noreply@github.com>2025-04-01 21:12:15 +0200
commitb68d46311dba9c410ed5a9339d396486958d1e5b (patch)
tree7ca6fde3ea581df1f705b927a06a21da132c90b0 /src/emu
parent2c7a2082e624a78e42199d90f7d9fa90473c26c2 (diff)
downloadbox64-b68d46311dba9c410ed5a9339d396486958d1e5b.tar.gz
box64-b68d46311dba9c410ed5a9339d396486958d1e5b.zip
Moved more OS-dependent functions to os.h (#2491)
Diffstat (limited to 'src/emu')
-rw-r--r--src/emu/x64emu_private.h8
-rw-r--r--src/emu/x64run_private.c1
-rw-r--r--src/emu/x64tls.c1
3 files changed, 3 insertions, 7 deletions
diff --git a/src/emu/x64emu_private.h b/src/emu/x64emu_private.h
index a9d73937..21f270f1 100644
--- a/src/emu/x64emu_private.h
+++ b/src/emu/x64emu_private.h
@@ -2,6 +2,7 @@
 #define __X86EMU_PRIVATE_H_
 
 #include "regs.h"
+#include "os.h"
 
 typedef struct box64context_s box64context_t;
 typedef struct x64_ucontext_s x64_ucontext_t;
@@ -51,13 +52,6 @@ typedef struct emu_flags_s {
     uint32_t    jmpbuf_ready:1;   // the jmpbuf in the emu is ok and don't need refresh
 } emu_flags_t;
 
-#ifdef ANDROID
-#include <setjmp.h>
-#define JUMPBUFF sigjmp_buf
-#else
-#define JUMPBUFF struct __jmp_buf_tag
-#endif
-
 #define N_SCRATCH 200
 
 typedef struct x64emu_s {
diff --git a/src/emu/x64run_private.c b/src/emu/x64run_private.c
index 9d520e59..05d01966 100644
--- a/src/emu/x64run_private.c
+++ b/src/emu/x64run_private.c
@@ -9,6 +9,7 @@
 #include <sys/syscall.h>
 #endif
 
+#include "os.h"
 #include "debug.h"
 #include "box64stack.h"
 #include "x64emu.h"
diff --git a/src/emu/x64tls.c b/src/emu/x64tls.c
index 4902177e..79a8ae5b 100644
--- a/src/emu/x64tls.c
+++ b/src/emu/x64tls.c
@@ -5,6 +5,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 
+#include "os.h"
 #include "debug.h"
 #include "box64context.h"
 #include "x64emu.h"