Sure, Thanks for remind me of this.
One thing I must point out, in current code logic, if "START_SEG_ADDR_RECORD"
occured multiple times, only the last one works. I don't know whether GNU
binutils would emit 'The Record' many times.
Best,
SU Hang
> -Original Messages-
> From: "Stefan Haj
Hi,
This series seems to have some coding style problems. See output below for
more information:
Type: series
Message-id: 20180610030220.3777-1-richard.hender...@linaro.org
Subject: [Qemu-devel] [PATCH v2 000/108] linux-user: Split do_syscall
=== TEST SCRIPT BEGIN ===
#!/bin/bash
BASE=base
n=1
[Expired for QEMU because there has been no activity for 60 days.]
** Changed in: qemu
Status: Incomplete => Expired
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/657329
Title:
APIC unusabl
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 21 ++---
1 file changed, 2 insertions(+), 19 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 7a94a0b0e9..a4cef22436 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -13204,23 +
This includes timerfd_create, timerfd_gettime, timerfd_settime.
All targets define all of these; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 83 +---
1 file changed, 40 insertions(+), 43 deletions(-)
diff --git a/linux-u
This includes timer_create, timer_delete, timer_getoverrun,
timer_gettime, and timer_settime. All targets define all of
these; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 234 ---
1 file changed, 111 insertions(+), 123 d
All targets define signalfd4; remove the ifdefs.
In do_signalfd4, unlock the target sigmask earlier and use is_error.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 34 ++
1 file changed, 18 insertions(+), 16 deletions(-)
diff --git a/linux-user/sysc
All targets define eventfd2; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 64 +---
1 file changed, 37 insertions(+), 27 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 8548f113d1..1158afde27 10
This includes mq_getsetattr, mq_open, mq_timedreceive, mq_timedsend,
and mq_unlink. All targets define these syscalls; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 211 +++
1 file changed, 112 insertions(+), 99 deletions(
This includes epoll_create, epoll_create1, epoll_ctl,
epoll_pwait, epoll_wait. All targets define epoll_create1,
epoll_ctl, epoll_pwait; remove those ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 244 +++
1 file changed, 128 insertio
We can use safe_futex in the one place that used sys_futex;
no need to define them both.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 9 ++---
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 800b79276f..95b30adea2
All targets define both of these; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 32
1 file changed, 20 insertions(+), 12 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index d15f994039..7a94a0b0e9 100644
--
At the same time, merge do_futex into the new function.
All targets define utimensat; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 161 ++-
1 file changed, 81 insertions(+), 80 deletions(-)
diff --git a/linux-user/syscall.
All targets define all of these; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 117 +++
1 file changed, 64 insertions(+), 53 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 0c312cd156..8548f113d
At the same time, make it atomic.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 47
1 file changed, 26 insertions(+), 21 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index f898e70e98..5d60872587 100644
--- a/lin
This includes inotify_add_watch, inotify_init, inotify_init1,
and inotify_rm_watch. At the same time, merge in the useless
wrappers around the libc functions. If host inotify_init1 is
not available, use inotify_init if flags == 0.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 139
When we switched from using clock_nanosleep to safe_clock_nanosleep,
we changed from the user-level API to the kernel-level ABI. These
have different senses of the errno value.
The special handling for PowerPC is not requied while we're following
the kernel ABI.
Fixes: 9e518226f43
Signed-off-by:
All targets define all of these; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 49
1 file changed, 27 insertions(+), 22 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c0752ad6e0..d15f99403
All targets define set_tid_address; remove the ifdef.
Use the bogus syscall method to supply the host syscall.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 37 ++---
1 file changed, 22 insertions(+), 15 deletions(-)
diff --git a/linux-user/syscall.
All targets define mincore; remove the ifdef.
At the same time, fix two bugs in the implementation:
(1) The pages to check need not be readable, only valid.
(2) The third argument is an output vector, which
(2a) needs to be writable, and
(2b) sized properly.
Signed-off-by: Richard Henderson
---
This includes clock_getres, clock_gettime, clock_nanosleep, clock_settime.
All targets define all of these; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 115 ++-
1 file changed, 60 insertions(+), 55 deletions(-)
diff --gi
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 92 +++-
1 file changed, 49 insertions(+), 43 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c37af32bb6..285612dfe5 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 70 +++-
1 file changed, 50 insertions(+), 20 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index ae591a6523..c8bd13092e 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 49 ++--
1 file changed, 29 insertions(+), 20 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 91d90c7417..f898e70e98 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
This includes fgetxattr, flistxattr, fremovexattr, fsetxattr,
getxattr, lgetxattr, listxattr, llistxattr, lremovexattr,
lsetxattr, removexattr, setxattr.
All targets define all of these; simplify the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 453 +++
All targets define prlimit64; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 65 ++--
1 file changed, 33 insertions(+), 32 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 9ce37c1119..91d90c7417 1
All targets define madvise; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 144 ---
1 file changed, 80 insertions(+), 64 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 5f056cf660..bcddb28947 1006
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 83 ++--
1 file changed, 50 insertions(+), 33 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 76a66b56fe..17560ebd41 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
All targets define readahead; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 37 +
1 file changed, 21 insertions(+), 16 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index bcddb28947..0897449273 100644
--
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 82 +++-
1 file changed, 58 insertions(+), 24 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 8d6b949b8a..f8e34d28b1 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
All targets define fallocate; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 101 +++
1 file changed, 63 insertions(+), 38 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 1158afde27..5edcb39b73 1
All targets define fchownat; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 66 +---
1 file changed, 43 insertions(+), 23 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 915e1f1a91..75b869fb33 100
Generalize the s390x guest advice frobbing to support s390x as a host.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 189 ++-
1 file changed, 113 insertions(+), 76 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index a
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 82 +++-
1 file changed, 58 insertions(+), 24 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index af96cc95d3..fc7f301519 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 22 ++
1 file changed, 14 insertions(+), 8 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index ee3a31f06d..e3765069ab 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -7680,6 +7
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 93 +++-
1 file changed, 57 insertions(+), 36 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 031033c0ea..af96cc95d3 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
All targets define ppoll; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 232 +++
1 file changed, 124 insertions(+), 108 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 600702ea3e..362d315ce8 1006
All targets define fdatasync; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 35 +++
1 file changed, 23 insertions(+), 12 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 07fa043965..1907b32499 100644
---
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 114 +--
1 file changed, 67 insertions(+), 47 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c8bd13092e..031033c0ea 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 94 +++-
1 file changed, 57 insertions(+), 37 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 75b869fb33..c55c414239 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 329 ++-
1 file changed, 170 insertions(+), 159 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index f5f21658a8..600702ea3e 100644
--- a/linux-user/syscall.c
+++ b/linux-use
Comment on the odd overlap of fstatat64 and newfstatat,
especially with respect to nios2.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 135 ---
1 file changed, 89 insertions(+), 46 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user
Given that we use _LARGEFILE_SOURCE and _FILEOFFSET_BITS == 64, there
is no need to special-case llseek on the host side; always use lseek.
Define _llseek in terms of llseek, rather than the other way around.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 81 +++-
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 323 ++-
1 file changed, 162 insertions(+), 161 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 17560ebd41..ae591a6523 100644
--- a/linux-user/syscall.c
+++ b/linux-use
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 70 ++--
1 file changed, 42 insertions(+), 28 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 1c3a4590fb..41facf4b44 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 156 ---
1 file changed, 86 insertions(+), 70 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 1e1ac8defd..c906719152 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
At the same time, merge do_modify_ldt into the new function.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 123 +++
1 file changed, 66 insertions(+), 57 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 41facf4b44..
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 33 -
1 file changed, 24 insertions(+), 9 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c55c414239..76a66b56fe 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@
All targets define swapoff; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 140 +++
1 file changed, 76 insertions(+), 64 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 87374014b1..a0fb4a 1006
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 107 +--
1 file changed, 63 insertions(+), 44 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index f8e34d28b1..915e1f1a91 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
This is msgctl, msgget, msgrcv, msgsnd, shmat, shmctl,
shmdt, shmget, semctl, semget, semop.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 154 ++-
1 file changed, 110 insertions(+), 44 deletions(-)
diff --git a/linux-user/syscall.c b/linux-
All targets define pread64 and pwrite64; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 88
1 file changed, 56 insertions(+), 32 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index e3765069ab..1
Handle getpeername, getsockname, getsockopt,
listen, recv, recvfrom, recvmsg.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 98 +++-
1 file changed, 70 insertions(+), 28 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
i
At the same time, merge do_ipc into the new function.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 193 ++-
1 file changed, 82 insertions(+), 111 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index a0fb4a..6ac753
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 133 +++
1 file changed, 70 insertions(+), 63 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 39e416db0b..c2dc7131bb 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
All targets define preadv and pwritev; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 135 ---
1 file changed, 77 insertions(+), 58 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 362d315ce8..07f
All targets define accept4; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 52 ++--
1 file changed, 36 insertions(+), 16 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index d50c84614e..155da4f523 1006
Unwrapping early produces a much nicer log output.
Disallow recursive syscall, as per ARM and MIPS.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 31 ++-
1 file changed, 26 insertions(+), 5 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/sys
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 92 +++-
1 file changed, 48 insertions(+), 44 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c906719152..39e416db0b 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
All targets define clock_adjtime; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 85 +---
1 file changed, 49 insertions(+), 36 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 4967b84f21..7ff05dd33
At the same time, merge do_socketcall into the new function.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 194 +--
1 file changed, 97 insertions(+), 97 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 6d8d2eb780..
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 129 +++
1 file changed, 82 insertions(+), 47 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c8fc7fc908..4f6c01092b 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
This includes sched_getaffinity, sched_getparam, sched_get_priority_max,
sched_get_priority_min, sched_getscheduler, sched_rr_get_interval,
sched_setaffinity, sched_setparam, sched_setscheduler, sched_yield.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 281
All targets define syslog; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 155 ++-
1 file changed, 79 insertions(+), 76 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 46c7c485fd..c8fc7fc908 10064
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 129 ++-
1 file changed, 67 insertions(+), 62 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 6869a0db47..94dc773b4c 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 214 +++
1 file changed, 114 insertions(+), 100 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 84f21634c8..ee3a31f06d 100644
--- a/linux-user/syscall.c
+++ b/linux-use
All targets define getrandom; remove the ifdef.
Define a stub if the host __NR_getrandom is not defined.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 90 ++--
1 file changed, 62 insertions(+), 28 deletions(-)
diff --git a/linux-user/syscall
A "proper" implementation of the stub would assign ENOSYS to
errno and return -1. As it is, the subsequent get_error will
return whatever garbage value was in errno.
Use the bogus syscall method for defining the stub function.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 13
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 176 +--
1 file changed, 101 insertions(+), 75 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index cc818ea65e..6869a0db47 100644
--- a/linux-user/syscall.c
+++ b/linux-user
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 68
1 file changed, 50 insertions(+), 18 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 98a982f83f..977f61610c 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 46 +++-
1 file changed, 28 insertions(+), 18 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 86583988c4..6d8d2eb780 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 193 ---
1 file changed, 125 insertions(+), 68 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index df8422cd3a..86583988c4 100644
--- a/linux-user/syscall.c
+++ b/linux-user
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 325 ++-
1 file changed, 165 insertions(+), 160 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index d78288258a..cdb4dd5bb4 100644
--- a/linux-user/syscall.c
+++ b/linux-use
All targets define all of these; remove the ifdefs.
Merge target_to_host_mlockall_arg into its only caller.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 62 ++--
1 file changed, 31 insertions(+), 31 deletions(-)
diff --git a/linux-user/sysc
All targets define all of these; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 61 ++--
1 file changed, 36 insertions(+), 25 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index a3374955da..7504ad74b
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 36 ++--
1 file changed, 26 insertions(+), 10 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 8e13a16e91..d78288258a 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.
All targets define fchmodat; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 58 ++--
1 file changed, 40 insertions(+), 18 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index f79aebe869..df8422cd3a 100
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 117 ++-
1 file changed, 61 insertions(+), 56 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index ac3592d776..4c5292efed 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
All targets define pselect6; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 251 ++-
1 file changed, 130 insertions(+), 121 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 4c5292efed..326323e377 1
All targets define swapon; remove the ifdef.
Add a comment noting the incorrect implementation of mmap2.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 142 ---
1 file changed, 81 insertions(+), 61 deletions(-)
diff --git a/linux-user/syscall
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 118 ---
1 file changed, 55 insertions(+), 63 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 3d3983a504..844e771488 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
All targets define symlinkat; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 64 +++-
1 file changed, 34 insertions(+), 30 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 326323e377..39d8a70d7d 10
All targets define readlinkat; remove the ifdef.
Unify the two with do_readlinkat so that we do not
replicate the /proc/self/exe handling.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 96
1 file changed, 43 insertions(+), 53 deletions(-
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 85 +++-
1 file changed, 52 insertions(+), 33 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 94dc773b4c..ac3592d776 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 39 +++
1 file changed, 27 insertions(+), 12 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index d32034ce38..3d3983a504 100644
--- a/linux-user/syscall.c
+++ b/linux-user/sysca
All targets define dup3; remove the ifdef.
If !CONFIG_DUP3, fall back to dup2 when flags == 0. This will help
emulation of new targets that do not define the dup2 syscall, using
dup3 as the syscall backing the dup2 posix function.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 113
At the same time, merge do_ioctl into the new function.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 184 ++-
1 file changed, 94 insertions(+), 90 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 81e142f091..ebe57
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 294 +++
1 file changed, 158 insertions(+), 136 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index cdb4dd5bb4..cc818ea65e 100644
--- a/linux-user/syscall.c
+++ b/linux-use
All targets define linkat; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 66 +++-
1 file changed, 34 insertions(+), 32 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index a146b696fd..936c7a7484 10064
All targets define pipe2 and umount2; remove the ifdefs.
Merge do_pipe2 into its only user.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 148 +--
1 file changed, 88 insertions(+), 60 deletions(-)
diff --git a/linux-user/syscall.c b/linux-us
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 155 ++-
1 file changed, 93 insertions(+), 62 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 844e771488..d5f7519e62 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
All targets define mkdirat; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 90 +---
1 file changed, 60 insertions(+), 30 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index e0a5d86956..f22d45d2cb 1006
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 58 +---
1 file changed, 38 insertions(+), 20 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index aa6c4e1577..a4d0f2720f 100644
--- a/linux-user/syscall.c
+++ b/linux-user/
All targets define faccessat and syncfs; remove the ifdefs.
Fix the missing flags parameter to faccessat.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 143 +++
1 file changed, 91 insertions(+), 52 deletions(-)
diff --git a/linux-user/syscal
All targets define renameat2; remove the ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 101 +++
1 file changed, 53 insertions(+), 48 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 6729a960ea..e0a5d86956 1
All targets define waitid; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 104 +++
1 file changed, 65 insertions(+), 39 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index f51cc7e937..a146b696fd 10064
At the same time, fix the repeated re-reading of the argv and env
arrays from guest memory. Instead read into a unified array once.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 203 ++-
1 file changed, 106 insertions(+), 97 deletions(-)
di
All targets define unlinkat; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 48 +---
1 file changed, 32 insertions(+), 16 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 936c7a7484..e1b3c7e827 100
All targets define mknodat; remove the ifdef.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 121 ---
1 file changed, 79 insertions(+), 42 deletions(-)
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index e1b3c7e827..d32034ce38 1006
At the same time, merge do_open_to_handle_at into the new function.
All targets define this syscall; remove one of the two ifdefs.
Signed-off-by: Richard Henderson
---
linux-user/syscall.c | 79 ++--
1 file changed, 39 insertions(+), 40 deletions(-)
diff
1 - 100 of 171 matches
Mail list logo