mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
target-arm: Wire up HLT 0xf000 as the A64 semihosting instruction
For the A64 instruction set, the semihosting call instruction is 'HLT 0xf000'. Wire this up to call do_arm_semihosting() if semihosting is enabled. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Christopher Covington <christopher.covington@linaro.org> Tested-by: Christopher Covington <cov@codeaurora.org> Message-id: 1439483745-28752-10-git-send-email-peter.maydell@linaro.org
This commit is contained in:
parent
7446d35e1d
commit
8012c84ff9
5 changed files with 34 additions and 2 deletions
|
@ -36,6 +36,7 @@ static inline bool excp_is_internal(int excp)
|
|||
|| excp == EXCP_HALTED
|
||||
|| excp == EXCP_EXCEPTION_EXIT
|
||||
|| excp == EXCP_KERNEL_TRAP
|
||||
|| excp == EXCP_SEMIHOST
|
||||
|| excp == EXCP_STREX;
|
||||
}
|
||||
|
||||
|
@ -58,6 +59,7 @@ static const char * const excnames[] = {
|
|||
[EXCP_SMC] = "Secure Monitor Call",
|
||||
[EXCP_VIRQ] = "Virtual IRQ",
|
||||
[EXCP_VFIQ] = "Virtual FIQ",
|
||||
[EXCP_SEMIHOST] = "Semihosting call",
|
||||
};
|
||||
|
||||
static inline void arm_log_exception(int idx)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue