linux-user: Honor TARGET_ARCH_HAS_SA_RESTORER in do_syscall
commitca192277db2bfc466840f19f2ee314a84fc78d5c
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 22 Apr 2021 23:02:24 +0000 (22 16:02 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Tue, 18 May 2021 05:10:45 +0000 (18 07:10 +0200)
tree42fbca38ff52f3ed004fbdd4b45be90904048fb6
parent02fb28e8effe5090ded4d36ea1c947a615099c26
linux-user: Honor TARGET_ARCH_HAS_SA_RESTORER in do_syscall

Do not access a field that may not be present.  This will
become an issue when sharing more code in the next patch.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20210422230227.314751-5-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/syscall.c