target/arm/arm-semi: Implement SH_EXT_STDOUT_STDERR extension
commit6ee18643770b360da0c8ee44aa07708caa516fa9
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 16 Sep 2019 14:15:44 +0000 (16 15:15 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 15 Oct 2019 17:09:04 +0000 (15 18:09 +0100)
treee33b9e6ca0683709473303cd26a3e3f5ea8ae2ab
parent22a43bb9abf946a9e405e740cfd0ba887ccd4823
target/arm/arm-semi: Implement SH_EXT_STDOUT_STDERR extension

SH_EXT_STDOUT_STDERR is a v2.0 semihosting extension: the guest
can open ":tt" with a file mode requesting append access in
order to open stderr, in addition to the existing "open for
read for stdin or write for stdout". Implement this and
report it via the :semihosting-features data.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Message-id: 20190916141544.17540-16-peter.maydell@linaro.org
target/arm/arm-semi.c