summaryrefslogtreecommitdiffstats
path: root/default-configs/devices
diff options
context:
space:
mode:
authorKeith Packard2021-01-08 23:42:52 +0100
committerAlex Bennée2021-01-18 11:05:06 +0100
commita10b9d93ecea0a8f01eb6de56274b1bcb101083b (patch)
tree24d8b952a691501fa22791881425539e33535d5a /default-configs/devices
parentsemihosting: Support SYS_HEAPINFO when env->boot_info is not set (diff)
downloadqemu-a10b9d93ecea0a8f01eb6de56274b1bcb101083b.tar.gz
qemu-a10b9d93ecea0a8f01eb6de56274b1bcb101083b.tar.xz
qemu-a10b9d93ecea0a8f01eb6de56274b1bcb101083b.zip
riscv: Add semihosting support
Adapt the arm semihosting support code for RISCV. This implementation is based on the standard for RISC-V semihosting version 0.2 as documented in https://github.com/riscv/riscv-semihosting-spec/releases/tag/0.2 Signed-off-by: Keith Packard <keithp@keithp.com> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20210107170717.2098982-6-keithp@keithp.com> Message-Id: <20210108224256.2321-17-alex.bennee@linaro.org>
Diffstat (limited to 'default-configs/devices')
-rw-r--r--default-configs/devices/riscv32-softmmu.mak2
-rw-r--r--default-configs/devices/riscv64-softmmu.mak2
2 files changed, 4 insertions, 0 deletions
diff --git a/default-configs/devices/riscv32-softmmu.mak b/default-configs/devices/riscv32-softmmu.mak
index 94a236c9c2..d847bd5692 100644
--- a/default-configs/devices/riscv32-softmmu.mak
+++ b/default-configs/devices/riscv32-softmmu.mak
@@ -3,6 +3,8 @@
# Uncomment the following lines to disable these optional devices:
#
#CONFIG_PCI_DEVICES=n
+CONFIG_SEMIHOSTING=y
+CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y
# Boards:
#
diff --git a/default-configs/devices/riscv64-softmmu.mak b/default-configs/devices/riscv64-softmmu.mak
index 76b6195648..d5eec75f05 100644
--- a/default-configs/devices/riscv64-softmmu.mak
+++ b/default-configs/devices/riscv64-softmmu.mak
@@ -3,6 +3,8 @@
# Uncomment the following lines to disable these optional devices:
#
#CONFIG_PCI_DEVICES=n
+CONFIG_SEMIHOSTING=y
+CONFIG_ARM_COMPATIBLE_SEMIHOSTING=y
# Boards:
#