arch-arm: Add support for semihosting STDIO redirection
authorAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 21 Feb 2018 12:07:01 +0000 (12:07 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 16 May 2018 17:20:27 +0000 (17:20 +0000)
commit23c6e60409a580e53834f90c1de1438a8ac94e88
treede59605e447fa05621c6a41897cccb032e6c1b0e
parentabb21ba99f3ae910101fc9f17341a52039c0547b
arch-arm: Add support for semihosting STDIO redirection

The Arm Semihosting layer currently assumes that the guest application
shares STDIO with gem5. This makes it hard to distinguish application
output from gem5's output and makes it impossible to redirect STDIN
when running in interactive mode. Add support for custom STDIO
redirection when instantiating the Semihosting model.

Change-Id: I3411a6b9bfb008ffc3087d8837f59be72bd1e8ae
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Anouk Van Laer <anouk.vanlaer@arm.com>
Reviewed-by: Jack Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/10021
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
src/arch/arm/ArmSemihosting.py
src/arch/arm/semihosting.cc
src/arch/arm/semihosting.hh