summary refs log tree commit diff stats
path: root/bsd-user/riscv/target_arch_cpu.h
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2024-09-06 11:48:58 +0200
committerAlistair Francis <alistair.francis@wdc.com>2024-10-02 15:11:51 +1000
commit177060d860ec94df7110963be289d0596ae6807b (patch)
treeea807b04b4c94d3014dd31db1f20388e7289aa9f /bsd-user/riscv/target_arch_cpu.h
parentb27402813e7007ab82ddd914c092777f11fab6ed (diff)
downloadfocaccia-qemu-177060d860ec94df7110963be289d0596ae6807b.tar.gz
focaccia-qemu-177060d860ec94df7110963be289d0596ae6807b.zip
target/riscv/cpu_helper: Fix linking problem with semihosting disabled
If QEMU has been configured with "--without-default-devices", the build
is currently failing with:

 /usr/bin/ld: libqemu-riscv32-softmmu.a.p/target_riscv_cpu_helper.c.o:
  in function `riscv_cpu_do_interrupt':
 .../qemu/target/riscv/cpu_helper.c:1678:(.text+0x2214): undefined
  reference to `do_common_semihosting'

We always want semihosting to be enabled if TCG is available, so change
the "imply" statements in the Kconfig file to "select", and make sure to
avoid calling into do_common_semihosting() if TCG is not available.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Message-ID: <20240906094858.718105-1-thuth@redhat.com>
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Diffstat (limited to 'bsd-user/riscv/target_arch_cpu.h')
0 files changed, 0 insertions, 0 deletions