arm: Optionally enable gem5 extended semihosting calls.
authorGabe Black <gabeblack@google.com>
Wed, 26 Feb 2020 12:59:25 +0000 (04:59 -0800)
committerGabe Black <gabeblack@google.com>
Wed, 25 Mar 2020 21:09:41 +0000 (21:09 +0000)
commit20189987ef5855284c941883e00fda602bf84377
tree5ea7de3ffb4538765b9a9b22cda49ed462867729
parent8824f25da40856412539b0321f8f63059c1441c5
arm: Optionally enable gem5 extended semihosting calls.

ARM's semihosting interface defines call numbers up to 0xff to be
for standardized use, and says that custom calls should go above this
number.

This new mechanism will let the caller decide whether it wants to
enable these extended calls, or if they should be ignored and only
standard calls should be recognized.

Change-Id: I34b01a4439c8a88242971ac486e34d810b054baf
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25947
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Maintainer: Giacomo Travaglini <giacomo.travaglini@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/arch/arm/semihosting.cc
src/arch/arm/semihosting.hh
src/arch/arm/system.cc
src/arch/arm/system.hh