mirror of
https://git.freebsd.org/ports.git
synced 2025-05-18 01:53:13 -04:00
- Update emulators/qemu-devel to 1.4.0 with preliminary bsd-user patches. Thanx to: sson, cognet, and others for much improved bsd-user support - it now runs at least quite a few mips64 and single-threaded arm binaries, see: https://wiki.freebsd.org/QemuUserModeHowTo
30 lines
777 B
Text
30 lines
777 B
Text
diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c
|
|
index 4deb0db..bde9ee9 100644
|
|
--- a/bsd-user/syscall.c
|
|
+++ b/bsd-user/syscall.c
|
|
@@ -2377,7 +2377,7 @@ do_thr_exit(CPUArchState *cpu_env, abi_ulong tid_addr)
|
|
|
|
if (tid_addr) {
|
|
/* Signal target userland that it can free the stack. */
|
|
- if (! put_user_u32(1, tid_addr))
|
|
+ if (! put_user_sal(1, tid_addr))
|
|
_umtx_op(g2h(tid_addr), UMTX_OP_WAKE, INT_MAX,
|
|
NULL, NULL);
|
|
}
|
|
@@ -4588,10 +4588,13 @@ do_stat:
|
|
{
|
|
struct timespec ts;
|
|
|
|
- if (target_to_host_timespec(&ts, arg1))
|
|
- goto efault;
|
|
+ if (arg1) {
|
|
+ if (target_to_host_timespec(&ts, arg1))
|
|
+ goto efault;
|
|
+ ret = do_thr_suspend(&ts);
|
|
+ } else
|
|
+ ret = do_thr_suspend(NULL);
|
|
|
|
- ret = do_thr_suspend(&ts);
|
|
}
|
|
break;
|
|
|