From 053d5e9b8d20101d86c7aac49a67a41c0d92dc91 Mon Sep 17 00:00:00 2001 From: ptitSeb Date: Sun, 26 Sep 2021 12:50:20 +0200 Subject: One more build fix for the untested loogarch64 support --- src/wrapped/wrappedudev0.c | 2 +- src/wrapped/wrappedudev1.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit 1.4.1