From: Richard Henderson <rth@twiddle.net>
To: Laurent Vivier <laurent@vivier.eu>
Cc: Riku Voipio <riku.voipio@iki.fi>,
qemu-devel@nongnu.org, dillona@dillona.com
Subject: Re: [Qemu-devel] [PATCH] linux-user,alpha: correct select()
Date: Mon, 07 Jan 2013 15:14:54 -0800 [thread overview]
Message-ID: <50EB56EE.4020600@twiddle.net> (raw)
In-Reply-To: <1357598314-21156-1-git-send-email-laurent@vivier.eu>
On 01/07/2013 02:38 PM, Laurent Vivier wrote:
> -#if defined(TARGET_NR_select) && !defined(TARGET_S390X) && !defined(TARGET_S390)
> +#if defined(TARGET_NR_select) && !defined(TARGET_S390X) && \
> + !defined(TARGET_S390) && \
> + !defined(TARGET_ALPHA)
> case TARGET_NR_select:
> {
> struct target_sel_arg_struct *sel;
> @@ -7189,8 +7191,9 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1,
> }
> break;
> #endif /* TARGET_NR_getdents64 */
> -#if defined(TARGET_NR__newselect) || defined(TARGET_S390X)
> -#ifdef TARGET_S390X
> +#if defined(TARGET_NR__newselect) || defined(TARGET_S390X) \
> + || defined(TARGET_ALPHA)
> +#if defined(TARGET_S390X) || defined(TARGET_ALPHA)
> case TARGET_NR_select:
> #else
> case TARGET_NR__newselect:
I would much prefer to see these blocks moved around so that it's of the form
#if defined(TARGET_NR_select)
case TARGET_NR_select:
# if defined(TARGET_ALPHA) || defined(TARGET_S390X)
ret = do_select(arg1, arg2, arg3, arg4, arg5);
# else
{
other stuff
}
# endif
break;
#endif
#if defined(TARGET_NR__newselect)
case TARGET_NR__newselect:
ret = do_select(arg1, arg2, arg3, arg4, arg5);
break;
#endif
I sincerely dislike sequences of defined and !defined that must be in sync.
Also note that there is no TARGET_S390, only TARGET_S390X. We only emulate
the 64-bit guest.
r~
next prev parent reply other threads:[~2013-01-07 23:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-07 22:38 [Qemu-devel] [PATCH] linux-user,alpha: correct select() Laurent Vivier
2013-01-07 23:14 ` Richard Henderson [this message]
2013-01-08 9:28 ` Laurent Vivier
2013-01-10 21:30 ` [Qemu-devel] [PATCH][v2] " Laurent Vivier
2013-01-10 21:47 ` Richard Henderson
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=50EB56EE.4020600@twiddle.net \
--to=rth@twiddle.net \
--cc=dillona@dillona.com \
--cc=laurent@vivier.eu \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).