summaryrefslogtreecommitdiffstats
path: root/hw/arm/aspeed.c
diff options
context:
space:
mode:
authorPeter Maydell2019-09-16 16:15:42 +0200
committerPeter Maydell2019-10-15 19:09:03 +0200
commitc46a653c3a2f96c55a47241ba9c67add0e7a3b22 (patch)
treecbb78cc6e8eed1582ae8ad7b0204e127faf004ae /hw/arm/aspeed.c
parenttarget/arm/arm-semi: Factor out implementation of SYS_FLEN (diff)
downloadqemu-c46a653c3a2f96c55a47241ba9c67add0e7a3b22.tar.gz
qemu-c46a653c3a2f96c55a47241ba9c67add0e7a3b22.tar.xz
qemu-c46a653c3a2f96c55a47241ba9c67add0e7a3b22.zip
target/arm/arm-semi: Implement support for semihosting feature detection
Version 2.0 of the semihosting specification added support for allowing a guest to detect whether the implementation supported particular features. This works by the guest opening a magic file ":semihosting-features", which contains a fixed set of data with some magic numbers followed by a sequence of bytes with feature flags. The file is expected to behave sensibly for the various semihosting calls which operate on files (SYS_FLEN, SYS_SEEK, etc). Implement this as another kind of guest FD using our function table dispatch mechanism. Initially we report no extended features, so we have just one feature flag byte which is zero. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Message-id: 20190916141544.17540-14-peter.maydell@linaro.org
Diffstat (limited to 'hw/arm/aspeed.c')
0 files changed, 0 insertions, 0 deletions