qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Huth <thuth@redhat.com>
To: "Alex Bennée" <alex.bennee@linaro.org>,
	qemu-devel@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
	"Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: Anton Johansson <anjo@rev.ng>,
	Palmer Dabbelt <palmer@dabbelt.com>,
	Alistair Francis <alistair.francis@wdc.com>,
	Bin Meng <bmeng.cn@gmail.com>, Weiwei Li <liwei1518@gmail.com>,
	Daniel Henrique Barboza <dbarboza@ventanamicro.com>,
	Liu Zhiwei <zhiwei_liu@linux.alibaba.com>,
	"open list:RISC-V TCG CPUs" <qemu-riscv@nongnu.org>
Subject: Re: [PULL 13/16] target/riscv: Restrict semihosting to TCG
Date: Fri, 6 Sep 2024 10:20:30 +0200	[thread overview]
Message-ID: <e36bd72e-2f98-45d3-8171-0eac7d509c13@redhat.com> (raw)
In-Reply-To: <bf198824-70c0-4724-b1d4-b6aa348322c1@redhat.com>

On 05/09/2024 19.08, Thomas Huth wrote:
> On 22/07/2024 13.04, Alex Bennée wrote:
>> From: Philippe Mathieu-Daudé <philmd@linaro.org>
>>
>> Semihosting currently uses the TCG probe_access API. To prepare for
>> encoding the TCG dependency in Kconfig, do not enable it unless TCG
>> is available.
>>
>> Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> Reviewed-by: Anton Johansson <anjo@rev.ng>
>> Message-Id: <20240717105723.58965-7-philmd@linaro.org>
>> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
>> Message-Id: <20240718094523.1198645-14-alex.bennee@linaro.org>
>>
>> diff --git a/target/riscv/Kconfig b/target/riscv/Kconfig
>> index 5f30df22f2..c332616d36 100644
>> --- a/target/riscv/Kconfig
>> +++ b/target/riscv/Kconfig
>> @@ -1,9 +1,9 @@
>>   config RISCV32
>>       bool
>> -    select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting()
>> +    imply ARM_COMPATIBLE_SEMIHOSTING if TCG
>>       select DEVICE_TREE # needed by boot.c
>>   config RISCV64
>>       bool
>> -    select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting()
>> +    imply ARM_COMPATIBLE_SEMIHOSTING if TCG
>>       select DEVICE_TREE # needed by boot.c
> 
>   Hi,
> 
> this patch broke compilation with "--without-default-devices":
> 
> /usr/bin/ld: libqemu-riscv64-softmmu.a.p/target_riscv_cpu_helper.c.o: in 
> function `riscv_cpu_do_interrupt':
> .../qemu/target/riscv/cpu_helper.c:1678:(.text+0x283c): undefined reference 
> to `do_common_semihosting'
> 
> Could you please have a look? I think we either have to revert to "select" 
> instead of "imply", or you might need to put some "#if 
> CONFIG_ARM_COMPATIBLE_SEMIHOSTING" into the code that calls 
> do_common_semihosting() ...?

Suggested a patch here now:

https://lore.kernel.org/qemu-devel/20240906080928.710051-1-thuth@redhat.com/

  Thomas




  reply	other threads:[~2024-09-06  8:21 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-22 11:03 [PULL 00/16] Final bits for 9.1-rc0 (docker, plugins, gdbstub, semihosting) Alex Bennée
2024-07-22 11:03 ` [PULL 01/16] testing: bump to latest libvirt-ci Alex Bennée
2024-07-22 11:03 ` [PULL 02/16] tests/avocado: Remove non-working sparc leon3 test Alex Bennée
2024-07-22 11:04 ` [PULL 03/16] gdbstub: Re-factor gdb command extensions Alex Bennée
2024-07-22 11:04 ` [PULL 04/16] plugins/stoptrigger: TCG plugin to stop execution under conditions Alex Bennée
2024-07-22 11:04 ` [PULL 05/16] plugins: fix mem callback array size Alex Bennée
2024-07-22 11:04 ` [PULL 06/16] tests/plugins: use qemu_plugin_outs for inline stats Alex Bennée
2024-07-22 11:04 ` [PULL 07/16] plugins/execlog.c: correct dump of registers values Alex Bennée
2024-07-22 11:04 ` [PULL 08/16] semihosting: Include missing 'gdbstub/syscalls.h' header Alex Bennée
2024-07-22 11:04 ` [PULL 09/16] target/m68k: Add semihosting stub Alex Bennée
2024-07-22 11:04 ` [PULL 10/16] target/mips: " Alex Bennée
2024-07-22 11:04 ` [PULL 11/16] target/m68k: Restrict semihosting to TCG Alex Bennée
2024-07-22 11:04 ` [PULL 12/16] target/mips: " Alex Bennée
2024-07-22 11:04 ` [PULL 13/16] target/riscv: " Alex Bennée
2024-09-05 17:08   ` Thomas Huth
2024-09-06  8:20     ` Thomas Huth [this message]
2024-07-22 11:04 ` [PULL 14/16] target/xtensa: " Alex Bennée
2024-07-22 11:04 ` [PULL 15/16] semihosting: Restrict " Alex Bennée
2024-07-22 11:04 ` [PULL 16/16] tests/tcg/aarch64: Fix test-mte.py Alex Bennée
2024-07-22 21:07 ` [PULL 00/16] Final bits for 9.1-rc0 (docker, plugins, gdbstub, semihosting) Philippe Mathieu-Daudé
2024-07-22 21:09   ` Philippe Mathieu-Daudé
2024-07-22 23:00     ` Alex Bennée

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=e36bd72e-2f98-45d3-8171-0eac7d509c13@redhat.com \
    --to=thuth@redhat.com \
    --cc=alex.bennee@linaro.org \
    --cc=alistair.francis@wdc.com \
    --cc=anjo@rev.ng \
    --cc=bmeng.cn@gmail.com \
    --cc=dbarboza@ventanamicro.com \
    --cc=liwei1518@gmail.com \
    --cc=palmer@dabbelt.com \
    --cc=pbonzini@redhat.com \
    --cc=philmd@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-riscv@nongnu.org \
    --cc=zhiwei_liu@linux.alibaba.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).