linux-user/i386: Split out gen_signal
commitacf768a904396b4a4b5fdfcb566843379dc8feb0
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 13 Feb 2020 03:22:20 +0000 (12 19:22 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 26 Mar 2020 07:08:54 +0000 (26 08:08 +0100)
treeb64ec3207ab3c99bd0dbde3c9af6219163639359
parent628460891dd46c25e33eec01757ac655679ea198
linux-user/i386: Split out gen_signal

This is a bit tidier than open-coding the 5 lines necessary
to initialize the target_siginfo_t.  In addition, this zeros
the remaining bytes of the target_siginfo_t, rather than
passing in garbage.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200213032223.14643-3-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/i386/cpu_loop.c