about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-09-26 12:50:20 +0200
committerptitSeb <sebastien.chev@gmail.com>2021-09-26 12:50:20 +0200
commit053d5e9b8d20101d86c7aac49a67a41c0d92dc91 (patch)
tree928b7b1362612cfd75e16cca89699a9bfaea6377 /src
parent40cb14bf316331b3f6757857af20eeb695c236b0 (diff)
downloadbox64-053d5e9b8d20101d86c7aac49a67a41c0d92dc91.tar.gz
box64-053d5e9b8d20101d86c7aac49a67a41c0d92dc91.zip
One more build fix for the untested loogarch64 support
Diffstat (limited to 'src')
-rwxr-xr-xsrc/wrapped/wrappedudev0.c2
-rwxr-xr-xsrc/wrapped/wrappedudev1.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wrapped/wrappedudev0.c b/src/wrapped/wrappedudev0.c
index e9147a58..098a7329 100755
--- a/src/wrapped/wrappedudev0.c
+++ b/src/wrapped/wrappedudev0.c
@@ -71,7 +71,7 @@ static void my_log_fn_##A(void* udev, int p, void *f, int l, void* fn, void* fmt
 static uintptr_t my_log_fn_fct_##A = 0;                                                                 \
 static void my_log_fn_##A(void* udev, int p, void *f, int l, void* fn, void* fmt, x64_va_list_t args)   \
 {                                                                                                       \
-    CREATE_VALIST_FROM_VALIST(b, emu->scratch);                                                         \
+    CREATE_VALIST_FROM_VALIST(b, thread_get_emu()->scratch);                                            \
     RunFunction(my_context, my_log_fn_fct_##A, 7, udev, p, f, l, fn, fmt, VARARGS);                     \
 }
 #endif
diff --git a/src/wrapped/wrappedudev1.c b/src/wrapped/wrappedudev1.c
index 903af343..893b1ebf 100755
--- a/src/wrapped/wrappedudev1.c
+++ b/src/wrapped/wrappedudev1.c
@@ -71,7 +71,7 @@ static void my_log_fn_##A(void* udev, int p, void *f, int l, void* fn, void* fmt
 static uintptr_t my_log_fn_fct_##A = 0;                                                                 \
 static void my_log_fn_##A(void* udev, int p, void *f, int l, void* fn, void* fmt, x64_va_list_t args)   \
 {                                                                                                       \
-    CREATE_VALIST_FROM_VALIST(b, emu->scratch);                                                         \
+    CREATE_VALIST_FROM_VALIST(b, thread_get_emu()->scratch);                                            \
     RunFunction(my_context, my_log_fn_fct_##A, 7, udev, p, f, l, fn, fmt, VARARGS);                     \
 }
 #endif