target-arm: Pull semihosting handling out to arm_cpu_do_interrupt()
commit904c04de2e1b425e7bc8c4ce2fae3d652eeed242
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Jan 2016 14:15:08 +0000 (21 14:15 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 21 Jan 2016 14:15:08 +0000 (21 14:15 +0000)
treef6d53f389de089bcb8c1dad9685882fc543b7d9a
parent966f758c49ff478c4757efa5970ce649161bff92
target-arm: Pull semihosting handling out to arm_cpu_do_interrupt()

Handling of semihosting calls should depend on the register width
of the calling code, not on that of any higher exception level,
so we need to identify and handle semihosting calls before we
decide whether to deliver the exception as an entry to AArch32
or AArch64. (EXCP_SEMIHOST is also an "internal exception" so
it has no target exception level in the first place.)

This will allow AArch32 EL1 code to use semihosting calls when
running under an AArch64 EL3.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
target-arm/helper.c