OSDN Git Service

target/xtensa: linux-user: fix fadvise64 call
authorMax Filippov <jcmvbkbc@gmail.com>
Sun, 1 Apr 2018 22:02:34 +0000 (15:02 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Mon, 2 Apr 2018 11:15:35 +0000 (04:15 -0700)
commit64a563dd8dd6ca2661d96a2e4b69f0a5465cab94
tree600b4ffad08fa8ccfd988b2ffab4fcfbed8d1713
parent12e3340c23972d7de6c2e306bafecd50abcbea1c
target/xtensa: linux-user: fix fadvise64 call

fadvise64_64 on xtensa passes advice as the second argument and so must
be handled similar to PPC.

This fixes glibc testsuite tests posix/tst-posix_fadvise and
posix/tst-posix_fadvise64.

Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
linux-user/syscall.c