semihosting: Bound length for semihost_sys_{read,write}
commit40f1219a8b2f95808ed5a18798dbce1b57fef211
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 29 Apr 2022 19:15:14 +0000 (29 12:15 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jun 2022 23:05:52 +0000 (28 04:35 +0530)
treec4838d2783f9be34e280708c2153f31fc94993d2
parentaa915bd0a67d6c0a214b45372ed841521c5cd07a
semihosting: Bound length for semihost_sys_{read,write}

Fixes a minor bug in which a 64-bit guest on a 32-bit host could
truncate the length.  This would only ever cause a problem if
there were no bits set in the low 32, so that it truncates to 0.

Reviewed-by: Luc Michel <lmichel@kalray.eu>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
semihosting/syscalls.c