* [PATCH v2 0/3] semihosting: Restrict to TCG
@ 2024-05-30 14:53 Philippe Mathieu-Daudé
2024-05-30 14:53 ` [PATCH v2 1/3] target/mips: Restrict semihosting " Philippe Mathieu-Daudé
` (3 more replies)
0 siblings, 4 replies; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-05-30 14:53 UTC (permalink / raw)
To: qemu-devel
Cc: Richard Henderson, Alex Bennée, Paolo Bonzini,
Anton Johansson, Philippe =?unknown-8bit?q?Mathieu-Daud=C3=A9?=
v2: Address Paolo's comment
Semihosting currently uses the TCG probe_access API,
so it is pointless to have it in the binary when TCG
isn't.
It could be implemented for other accelerators, but
work need to be done. Meanwhile, do not enable it
unless TCG is available.
Philippe Mathieu-Daudé (3):
target/mips: Restrict semihosting to TCG
target/riscv: Restrict semihosting to TCG
semihosting: Restrict to TCG
semihosting/Kconfig | 1 +
target/mips/Kconfig | 2 +-
target/riscv/Kconfig | 4 ++--
3 files changed, 4 insertions(+), 3 deletions(-)
--
2.41.0
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v2 1/3] target/mips: Restrict semihosting to TCG
2024-05-30 14:53 [PATCH v2 0/3] semihosting: Restrict to TCG Philippe Mathieu-Daudé
@ 2024-05-30 14:53 ` Philippe Mathieu-Daudé
2024-06-07 11:08 ` Anton Johansson via
2024-05-30 14:53 ` [PATCH v2 2/3] target/riscv: " Philippe Mathieu-Daudé
` (2 subsequent siblings)
3 siblings, 1 reply; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-05-30 14:53 UTC (permalink / raw)
To: qemu-devel
Cc: Richard Henderson, Alex Bennée, Paolo Bonzini,
Anton Johansson, Philippe Mathieu-Daudé
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>
---
target/mips/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/target/mips/Kconfig b/target/mips/Kconfig
index eb19c94c7d..876048b150 100644
--- a/target/mips/Kconfig
+++ b/target/mips/Kconfig
@@ -1,6 +1,6 @@
config MIPS
bool
- select SEMIHOSTING
+ imply SEMIHOSTING if TCG
config MIPS64
bool
--
2.41.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v2 1/3] target/mips: Restrict semihosting to TCG
2024-05-30 14:53 ` [PATCH v2 1/3] target/mips: Restrict semihosting " Philippe Mathieu-Daudé
@ 2024-06-07 11:08 ` Anton Johansson via
2024-06-07 13:48 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 11+ messages in thread
From: Anton Johansson via @ 2024-06-07 11:08 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: qemu-devel, Richard Henderson, Alex Bennée, Paolo Bonzini
On 30/05/24, Philippe Mathieu-Daudé wrote:
> 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>
> ---
> target/mips/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
xtensa and m68k also `select SEMIHOSTING`, were these missed?
Otherwise for patch 1 & 2:
Reviewed-by: Anton Johansson <anjo@rev.ng>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 1/3] target/mips: Restrict semihosting to TCG
2024-06-07 11:08 ` Anton Johansson via
@ 2024-06-07 13:48 ` Philippe Mathieu-Daudé
2024-06-10 9:29 ` Alex Bennée
0 siblings, 1 reply; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-06-07 13:48 UTC (permalink / raw)
To: Anton Johansson
Cc: qemu-devel, Richard Henderson, Alex Bennée, Paolo Bonzini
On 7/6/24 13:08, Anton Johansson wrote:
> On 30/05/24, Philippe Mathieu-Daudé wrote:
>> 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>
>> ---
>> target/mips/Kconfig | 2 +-
>> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> xtensa and m68k also `select SEMIHOSTING`, were these missed?
TCG is the only accelerator they use, so it is kinda implicit,
but you are right, I'll update for completeness.
> Otherwise for patch 1 & 2:
> Reviewed-by: Anton Johansson <anjo@rev.ng>
Thanks!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 1/3] target/mips: Restrict semihosting to TCG
2024-06-07 13:48 ` Philippe Mathieu-Daudé
@ 2024-06-10 9:29 ` Alex Bennée
2024-06-10 14:55 ` Philippe Mathieu-Daudé
0 siblings, 1 reply; 11+ messages in thread
From: Alex Bennée @ 2024-06-10 9:29 UTC (permalink / raw)
To: Philippe Mathieu-Daudé
Cc: Anton Johansson, qemu-devel, Richard Henderson, Paolo Bonzini
Philippe Mathieu-Daudé <philmd@linaro.org> writes:
> On 7/6/24 13:08, Anton Johansson wrote:
>> On 30/05/24, Philippe Mathieu-Daudé wrote:
>>> 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>
>>> ---
>>> target/mips/Kconfig | 2 +-
>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>> xtensa and m68k also `select SEMIHOSTING`, were these missed?
>
> TCG is the only accelerator they use, so it is kinda implicit,
> but you are right, I'll update for completeness.
So I'll wait for a v3?
>
>> Otherwise for patch 1 & 2:
>> Reviewed-by: Anton Johansson <anjo@rev.ng>
>
> Thanks!
--
Alex Bennée
Virtualisation Tech Lead @ Linaro
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 1/3] target/mips: Restrict semihosting to TCG
2024-06-10 9:29 ` Alex Bennée
@ 2024-06-10 14:55 ` Philippe Mathieu-Daudé
0 siblings, 0 replies; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-06-10 14:55 UTC (permalink / raw)
To: Alex Bennée
Cc: Anton Johansson, qemu-devel, Richard Henderson, Paolo Bonzini
On 10/6/24 11:29, Alex Bennée wrote:
> Philippe Mathieu-Daudé <philmd@linaro.org> writes:
>
>> On 7/6/24 13:08, Anton Johansson wrote:
>>> On 30/05/24, Philippe Mathieu-Daudé wrote:
>>>> 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>
>>>> ---
>>>> target/mips/Kconfig | 2 +-
>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>> xtensa and m68k also `select SEMIHOSTING`, were these missed?
>>
>> TCG is the only accelerator they use, so it is kinda implicit,
>> but you are right, I'll update for completeness.
>
> So I'll wait for a v3?
Yes, on the way...
^ permalink raw reply [flat|nested] 11+ messages in thread
* [PATCH v2 2/3] target/riscv: Restrict semihosting to TCG
2024-05-30 14:53 [PATCH v2 0/3] semihosting: Restrict to TCG Philippe Mathieu-Daudé
2024-05-30 14:53 ` [PATCH v2 1/3] target/mips: Restrict semihosting " Philippe Mathieu-Daudé
@ 2024-05-30 14:53 ` Philippe Mathieu-Daudé
2024-05-30 14:53 ` [PATCH v2 3/3] semihosting: Restrict " Philippe Mathieu-Daudé
2024-06-03 8:27 ` [PATCH v2 0/3] " Philippe Mathieu-Daudé
3 siblings, 0 replies; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-05-30 14:53 UTC (permalink / raw)
To: qemu-devel
Cc: Richard Henderson, Alex Bennée, Paolo Bonzini,
Anton Johansson, Philippe Mathieu-Daudé
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>
---
target/riscv/Kconfig | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/target/riscv/Kconfig b/target/riscv/Kconfig
index 5f30df22f2..cbafbedaeb 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 # for do_common_semihosting()
select DEVICE_TREE # needed by boot.c
config RISCV64
bool
- select ARM_COMPATIBLE_SEMIHOSTING # for do_common_semihosting()
+ imply ARM_COMPATIBLE_SEMIHOSTING if TCG # for do_common_semihosting()
select DEVICE_TREE # needed by boot.c
--
2.41.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* [PATCH v2 3/3] semihosting: Restrict to TCG
2024-05-30 14:53 [PATCH v2 0/3] semihosting: Restrict to TCG Philippe Mathieu-Daudé
2024-05-30 14:53 ` [PATCH v2 1/3] target/mips: Restrict semihosting " Philippe Mathieu-Daudé
2024-05-30 14:53 ` [PATCH v2 2/3] target/riscv: " Philippe Mathieu-Daudé
@ 2024-05-30 14:53 ` Philippe Mathieu-Daudé
2024-06-03 8:27 ` [PATCH v2 0/3] " Philippe Mathieu-Daudé
3 siblings, 0 replies; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-05-30 14:53 UTC (permalink / raw)
To: qemu-devel
Cc: Richard Henderson, Alex Bennée, Paolo Bonzini,
Anton Johansson, Philippe Mathieu-Daudé
Semihosting currently uses the TCG probe_access API.
It is pointless to have it in the binary when TCG isn't.
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
semihosting/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/semihosting/Kconfig b/semihosting/Kconfig
index eaf3a20ef5..fbe6ac87f9 100644
--- a/semihosting/Kconfig
+++ b/semihosting/Kconfig
@@ -1,6 +1,7 @@
config SEMIHOSTING
bool
+ depends on TCG
config ARM_COMPATIBLE_SEMIHOSTING
bool
--
2.41.0
^ permalink raw reply related [flat|nested] 11+ messages in thread
* Re: [PATCH v2 0/3] semihosting: Restrict to TCG
2024-05-30 14:53 [PATCH v2 0/3] semihosting: Restrict to TCG Philippe Mathieu-Daudé
` (2 preceding siblings ...)
2024-05-30 14:53 ` [PATCH v2 3/3] semihosting: Restrict " Philippe Mathieu-Daudé
@ 2024-06-03 8:27 ` Philippe Mathieu-Daudé
2024-06-06 12:43 ` Philippe Mathieu-Daudé
3 siblings, 1 reply; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-06-03 8:27 UTC (permalink / raw)
To: qemu-devel
Cc: Richard Henderson, Alex Bennée, Paolo Bonzini,
Anton Johansson
On 30/5/24 16:53, Philippe Mathieu-Daudé wrote:
> v2: Address Paolo's comment
Missing review: 1 & 2
> Semihosting currently uses the TCG probe_access API,
> so it is pointless to have it in the binary when TCG
> isn't.
>
> It could be implemented for other accelerators, but
> work need to be done. Meanwhile, do not enable it
> unless TCG is available.
>
> Philippe Mathieu-Daudé (3):
> target/mips: Restrict semihosting to TCG
> target/riscv: Restrict semihosting to TCG
> semihosting: Restrict to TCG
>
> semihosting/Kconfig | 1 +
> target/mips/Kconfig | 2 +-
> target/riscv/Kconfig | 4 ++--
> 3 files changed, 4 insertions(+), 3 deletions(-)
>
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [PATCH v2 0/3] semihosting: Restrict to TCG
2024-06-03 8:27 ` [PATCH v2 0/3] " Philippe Mathieu-Daudé
@ 2024-06-06 12:43 ` Philippe Mathieu-Daudé
2024-06-06 13:42 ` Anton Johansson via
0 siblings, 1 reply; 11+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-06-06 12:43 UTC (permalink / raw)
To: qemu-devel
Cc: Richard Henderson, Alex Bennée, Paolo Bonzini,
Anton Johansson
Kind ping :)
On 3/6/24 10:27, Philippe Mathieu-Daudé wrote:
> On 30/5/24 16:53, Philippe Mathieu-Daudé wrote:
>> v2: Address Paolo's comment
>
> Missing review: 1 & 2
>
>> Semihosting currently uses the TCG probe_access API,
>> so it is pointless to have it in the binary when TCG
>> isn't.
>>
>> It could be implemented for other accelerators, but
>> work need to be done. Meanwhile, do not enable it
>> unless TCG is available.
>>
>> Philippe Mathieu-Daudé (3):
>> target/mips: Restrict semihosting to TCG
>> target/riscv: Restrict semihosting to TCG
>> semihosting: Restrict to TCG
>>
>> semihosting/Kconfig | 1 +
>> target/mips/Kconfig | 2 +-
>> target/riscv/Kconfig | 4 ++--
>> 3 files changed, 4 insertions(+), 3 deletions(-)
>>
>
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2024-06-10 14:56 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-30 14:53 [PATCH v2 0/3] semihosting: Restrict to TCG Philippe Mathieu-Daudé
2024-05-30 14:53 ` [PATCH v2 1/3] target/mips: Restrict semihosting " Philippe Mathieu-Daudé
2024-06-07 11:08 ` Anton Johansson via
2024-06-07 13:48 ` Philippe Mathieu-Daudé
2024-06-10 9:29 ` Alex Bennée
2024-06-10 14:55 ` Philippe Mathieu-Daudé
2024-05-30 14:53 ` [PATCH v2 2/3] target/riscv: " Philippe Mathieu-Daudé
2024-05-30 14:53 ` [PATCH v2 3/3] semihosting: Restrict " Philippe Mathieu-Daudé
2024-06-03 8:27 ` [PATCH v2 0/3] " Philippe Mathieu-Daudé
2024-06-06 12:43 ` Philippe Mathieu-Daudé
2024-06-06 13:42 ` Anton Johansson via
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).