* Re: [Qemu-devel] [Qemu-trivial] [PATCH] Fixes i386 xchgq test
[not found] <03506cf0-a204-f619-8ee4-4990a5e69af5@cea.fr>
@ 2018-12-10 19:26 ` Philippe Mathieu-Daudé
2018-12-10 19:42 ` Richard Henderson
0 siblings, 1 reply; 3+ messages in thread
From: Philippe Mathieu-Daudé @ 2018-12-10 19:26 UTC (permalink / raw)
To: fabrice.desclaux, Paolo Bonzini, Richard Henderson,
Eduardo Habkost, qemu-devel@nongnu.org Developers
Cc: QEMU Trivial, Michael Tokarev, Laurent Vivier, camille.mougey
Hi Fabrice,
On Fri, Dec 7, 2018 at 5:06 PM <fabrice.desclaux@cea.fr> wrote:
>
> As "xchg" reads and writes both operands, the "+m" is required to avoid
> undefined behavior on -O2 compilation.
>
> Signed-off-by: Fabrice Desclaux <fabrice.desclaux@cea.fr>
> ---
> tests/tcg/i386/test-i386.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c
> index a29b41e764..18d5609665 100644
> --- a/tests/tcg/i386/test-i386.c
> +++ b/tests/tcg/i386/test-i386.c
> @@ -1137,7 +1137,7 @@ void test_xchg(void)
> TEST_XCHG(xchgb, "b", "+q");
>
> #if defined(__x86_64__)
> - TEST_XCHG(xchgq, "", "=m");
> + TEST_XCHG(xchgq, "", "+m");
> #endif
> TEST_XCHG(xchgl, "k", "+m");
> TEST_XCHG(xchgw, "w", "+m");
> --
> 2.19.2
All QEMU patches has to go via the qemu-devel@nongnu.org list (you
only sent it to the trivial list).
I'm also Cc'ing the maintainers:
$ ./scripts/get_maintainer.pl -f tests/tcg/i386/test-i386.c
Paolo Bonzini <pbonzini@redhat.com> (maintainer:X86)
Richard Henderson <rth@twiddle.net> (maintainer:X86)
Eduardo Habkost <ehabkost@redhat.com> (maintainer:X86)
qemu-devel@nongnu.org (open list:All patches CC here)
Regards,
Phil.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] Fixes i386 xchgq test
2018-12-10 19:26 ` [Qemu-devel] [Qemu-trivial] [PATCH] Fixes i386 xchgq test Philippe Mathieu-Daudé
@ 2018-12-10 19:42 ` Richard Henderson
2018-12-11 17:42 ` Laurent Vivier
0 siblings, 1 reply; 3+ messages in thread
From: Richard Henderson @ 2018-12-10 19:42 UTC (permalink / raw)
To: Philippe Mathieu-Daudé,
fabrice.desclaux, Paolo Bonzini, Eduardo Habkost,
qemu-devel@nongnu.org Developers
Cc: QEMU Trivial, Michael Tokarev, Laurent Vivier, camille.mougey
On 12/10/18 1:26 PM, Philippe Mathieu-Daudé wrote:
> Hi Fabrice,
>
> On Fri, Dec 7, 2018 at 5:06 PM <fabrice.desclaux@cea.fr> wrote:
>>
>> As "xchg" reads and writes both operands, the "+m" is required to avoid
>> undefined behavior on -O2 compilation.
>>
>> Signed-off-by: Fabrice Desclaux <fabrice.desclaux@cea.fr>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>> ---
>> tests/tcg/i386/test-i386.c | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/tests/tcg/i386/test-i386.c b/tests/tcg/i386/test-i386.c
>> index a29b41e764..18d5609665 100644
>> --- a/tests/tcg/i386/test-i386.c
>> +++ b/tests/tcg/i386/test-i386.c
>> @@ -1137,7 +1137,7 @@ void test_xchg(void)
>> TEST_XCHG(xchgb, "b", "+q");
>>
>> #if defined(__x86_64__)
>> - TEST_XCHG(xchgq, "", "=m");
>> + TEST_XCHG(xchgq, "", "+m");
>> #endif
>> TEST_XCHG(xchgl, "k", "+m");
>> TEST_XCHG(xchgw, "w", "+m");
>> --
>> 2.19.2
>
> All QEMU patches has to go via the qemu-devel@nongnu.org list (you
> only sent it to the trivial list).
> I'm also Cc'ing the maintainers:
Thanks, Phil.
r~
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [Qemu-trivial] [PATCH] Fixes i386 xchgq test
2018-12-10 19:42 ` Richard Henderson
@ 2018-12-11 17:42 ` Laurent Vivier
0 siblings, 0 replies; 3+ messages in thread
From: Laurent Vivier @ 2018-12-11 17:42 UTC (permalink / raw)
To: Richard Henderson, Philippe Mathieu-Daudé,
fabrice.desclaux, Paolo Bonzini, Eduardo Habkost,
qemu-devel@nongnu.org Developers
Cc: QEMU Trivial, Michael Tokarev, camille.mougey
Le 10/12/2018 à 20:42, Richard Henderson a écrit :
> On 12/10/18 1:26 PM, Philippe Mathieu-Daudé wrote:
>> Hi Fabrice,
>>
>> On Fri, Dec 7, 2018 at 5:06 PM <fabrice.desclaux@cea.fr> wrote:
>>>
>>> As "xchg" reads and writes both operands, the "+m" is required to avoid
>>> undefined behavior on -O2 compilation.
>>>
>>> Signed-off-by: Fabrice Desclaux <fabrice.desclaux@cea.fr>
>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
>
>
Applied to my trivial-patches branch.
Thanks,
Laurent
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-12-11 17:43 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <03506cf0-a204-f619-8ee4-4990a5e69af5@cea.fr>
2018-12-10 19:26 ` [Qemu-devel] [Qemu-trivial] [PATCH] Fixes i386 xchgq test Philippe Mathieu-Daudé
2018-12-10 19:42 ` Richard Henderson
2018-12-11 17:42 ` Laurent Vivier
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.