From: Sergei Trofimovich <slyfox@gentoo.org>
To: qemu-devel@nongnu.org
Cc: Riku Voipio <riku.voipio@iki.fi>,
Peter Maydell <peter.maydell@linaro.org>
Subject: Re: [Qemu-devel] [PATCH] alpha-user: wire epoll_create, epoll_ctl, epoll_wait
Date: Thu, 11 May 2017 22:56:28 +0100 [thread overview]
Message-ID: <20170511225628.4cc01a7e@sf> (raw)
In-Reply-To: <20170408193322.16631-1-slyfox@gentoo.org>
[-- Attachment #1: Type: text/plain, Size: 1691 bytes --]
On Sat, 8 Apr 2017 20:33:22 +0100
Sergei Trofimovich <slyfox@gentoo.org> wrote:
> Noticed when ran GHC on alpha:
> $ qemu-alpha -L /usr/alpha-unknown-linux-gnu/ /tmp/a
> qemu: Unsupported syscall: 407
>
> linux-user/syscall.c does have 'epoll_create' wiring,
> but under nondeprecated name.
>
> Instead of defining both
> TARGET_NR_sys_epoll_create
> and
> TARGET_NR_epoll_create
> I've renamed former to later as old name is not used
> anywhere else in qemu.
>
> After this change GHC works fine under qemu-alpha:
> $ ./alpha-linux-user/qemu-alpha -L /usr/alpha-unknown-linux-gnu/ /tmp/a
> ...
>
> Cc: Peter Maydell <peter.maydell@linaro.org>
> Cc: Riku Voipio <riku.voipio@iki.fi>
> Cc: qemu-devel@nongnu.org
> Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
> ---
> linux-user/alpha/syscall_nr.h | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/linux-user/alpha/syscall_nr.h b/linux-user/alpha/syscall_nr.h
> index 00e14bb6b3..e848154663 100644
> --- a/linux-user/alpha/syscall_nr.h
> +++ b/linux-user/alpha/syscall_nr.h
> @@ -343,9 +343,9 @@
> #define TARGET_NR_io_cancel 402
> #define TARGET_NR_exit_group 405
> #define TARGET_NR_lookup_dcookie 406
> -#define TARGET_NR_sys_epoll_create 407
> -#define TARGET_NR_sys_epoll_ctl 408
> -#define TARGET_NR_sys_epoll_wait 409
> +#define TARGET_NR_epoll_create 407
> +#define TARGET_NR_epoll_ctl 408
> +#define TARGET_NR_epoll_wait 409
> #define TARGET_NR_remap_file_pages 410
> #define TARGET_NR_set_tid_address 411
> #define TARGET_NR_restart_syscall 412
> --
> 2.12.2
>
Ping.
--
Sergei
[-- Attachment #2: Цифровая подпись OpenPGP --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
next prev parent reply other threads:[~2017-05-11 21:56 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-08 19:33 [Qemu-devel] [PATCH] alpha-user: wire epoll_create, epoll_ctl, epoll_wait Sergei Trofimovich
2017-05-11 21:56 ` Sergei Trofimovich [this message]
2017-05-30 13:04 ` Peter Maydell
2017-05-31 7:58 ` [Qemu-devel] [PATCH v2] " Sergei Trofimovich
2017-05-31 8:30 ` no-reply
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170511225628.4cc01a7e@sf \
--to=slyfox@gentoo.org \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=riku.voipio@iki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.