diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-09-26 12:50:20 +0200 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-09-26 12:50:20 +0200 |
| commit | 053d5e9b8d20101d86c7aac49a67a41c0d92dc91 (patch) | |
| tree | 928b7b1362612cfd75e16cca89699a9bfaea6377 /src | |
| parent | 40cb14bf316331b3f6757857af20eeb695c236b0 (diff) | |
| download | box64-053d5e9b8d20101d86c7aac49a67a41c0d92dc91.tar.gz box64-053d5e9b8d20101d86c7aac49a67a41c0d92dc91.zip | |
One more build fix for the untested loogarch64 support
Diffstat (limited to 'src')
| -rwxr-xr-x | src/wrapped/wrappedudev0.c | 2 | ||||
| -rwxr-xr-x | src/wrapped/wrappedudev1.c | 2 |
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 |