diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2019-05-30 15:35:14 +0100 |
---|---|---|
committer | Alex Bennée <alex.bennee@linaro.org> | 2019-06-12 17:53:22 +0100 |
commit | 78e24848f6a2923f356d15d8751c644f94a39fd8 (patch) | |
tree | f9a6d5636870a08f820e9186ade7738dd656487f /target | |
parent | 3ace9be6d267b2f876ebb34096fe5d9b64a82d9a (diff) |
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>
Diffstat (limited to 'target')
-rw-r--r-- | target/arm/arm-semi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/arm/arm-semi.c b/target/arm/arm-semi.c index bca9a25910..90423a35de 100644 --- a/target/arm/arm-semi.c +++ b/target/arm/arm-semi.c @@ -314,10 +314,10 @@ target_ulong do_arm_semihosting(CPUARMState *env) return set_swi_errno(ts, close(arg0)); } case TARGET_SYS_WRITEC: - qemu_semihosting_console_out(env, args, 1); + qemu_semihosting_console_outc(env, args); return 0xdeadbeef; case TARGET_SYS_WRITE0: - return qemu_semihosting_console_out(env, args, 0); + return qemu_semihosting_console_outs(env, args); case TARGET_SYS_WRITE: GET_ARG(0); GET_ARG(1); |