semihosting: split console_out into string and char versions
commit78e24848f6a2923f356d15d8751c644f94a39fd8
authorAlex Bennée <alex.bennee@linaro.org>
Thu, 30 May 2019 14:35:14 +0000 (30 15:35 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Wed, 12 Jun 2019 16:53:22 +0000 (12 17:53 +0100)
treef9a6d5636870a08f820e9186ade7738dd656487f
parent3ace9be6d267b2f876ebb34096fe5d9b64a82d9a
semihosting: split console_out into string and char versions

This is ostensibly to avoid the weirdness of len looking like it might
come from a guest and sometimes being used. While we are at it fix up
the error checking for the arm-linux-user implementation of the API
which got flagged up by Coverity (CID 1401700).

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
hw/semihosting/console.c
include/hw/semihosting/console.h
linux-user/arm/semihost.c
target/arm/arm-semi.c