diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2021-02-18 19:18:00 +0100 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2021-04-05 00:39:04 +0200 |
commit | 6a8eb99e130f3f7658de2776934374fe1c41279e (patch) | |
tree | 8ef3f342e36752553f900d6783a83d2d3cfe8454 /arch/xtensa/Kconfig | |
parent | xtensa: ISS: split simcall implementation from semihosting interface (diff) | |
download | linux-6a8eb99e130f3f7658de2776934374fe1c41279e.tar.xz linux-6a8eb99e130f3f7658de2776934374fe1c41279e.zip |
xtensa: ISS: add GDBIO implementation to semihosting interface
Add GDBIO implementation for the xtensa semihosting interface. It offers
less functions than the simcall interface, so make some semihosting
functions optional and return error when implementation is not
available.
Add Kconfig menu to select semihosting implementation and add simcall and
GDBIO choices there.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/Kconfig')
-rw-r--r-- | arch/xtensa/Kconfig | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/arch/xtensa/Kconfig b/arch/xtensa/Kconfig index d637b396f81c..6ad4c1161518 100644 --- a/arch/xtensa/Kconfig +++ b/arch/xtensa/Kconfig @@ -393,6 +393,28 @@ config PARSE_BOOTPARAM If unsure, say Y. +choice + prompt "Semihosting interface" + default XTENSA_SIMCALL_ISS + depends on XTENSA_PLATFORM_ISS + help + Choose semihosting interface that will be used for serial port, + block device and networking. + +config XTENSA_SIMCALL_ISS + bool "simcall" + help + Use simcall instruction. simcall is only available on simulators, + it does nothing on hardware. + +config XTENSA_SIMCALL_GDBIO + bool "GDBIO" + help + Use break instruction. It is available on real hardware when GDB + is attached to it via JTAG. + +endchoice + config BLK_DEV_SIMDISK tristate "Host file-based simulated block device support" default n |