summaryrefslogtreecommitdiffstats
path: root/linux-user/arm/semihost.c
Commit message (Collapse)AuthorAgeFilesLines
* semihosting: split console_out into string and char versionsAlex Bennée2019-06-121-3/+28
| | | | | | | | | 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>
* target/arm: use the common interface for WRITE0/WRITEC in arm-semiAlex Bennée2019-05-281-0/+24
Now we have a common semihosting console interface use that for our string output. However ARM is currently unique in also supporting semihosting for linux-user so we need to replicate the API in linux-user. If other architectures gain this support we can move the file later. Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>