OSDN Git Service

semihosting: Inline set_swi_errno into common_semi_cb
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 17 May 2022 02:25:19 +0000 (19:25 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 27 Jun 2022 23:05:07 +0000 (04:35 +0530)
commit5aadd1829905aace2a1201ddb8ac9b7f18d104fb
treea9fac5977944674027bcac7237e4fe7282eb219a
parent1c6ff7205bff49870dc3511f237b3ad90da5f5f7
semihosting: Inline set_swi_errno into common_semi_cb

Do not store 'err' into errno only to read it back immediately.
Use 'ret' for the return value, not 'reg0'.

Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
semihosting/arm-compat-semi.c