* [PATCH] thunk: Delete checks for old host definitions
@ 2023-08-08 15:23 Akihiko Odaki
2023-08-08 15:32 ` Peter Maydell
2023-08-10 10:56 ` Philippe Mathieu-Daudé
0 siblings, 2 replies; 5+ messages in thread
From: Akihiko Odaki @ 2023-08-08 15:23 UTC (permalink / raw)
Cc: Alex Bennée, pbonzini, philmd, laurent, deller, qemu-devel,
Richard Henderson, Warner Losh, Kyle Evans, Akihiko Odaki
Alpha, IA-64, and PA-RISC hosts are no longer supported.
Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
---
include/exec/user/thunk.h | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/include/exec/user/thunk.h b/include/exec/user/thunk.h
index 300a840d58..d9c131ec80 100644
--- a/include/exec/user/thunk.h
+++ b/include/exec/user/thunk.h
@@ -111,8 +111,7 @@ static inline int thunk_type_size(const argtype *type_ptr, int is_host)
if (is_host) {
#if defined(HOST_X86_64)
return 8;
-#elif defined(HOST_ALPHA) || defined(HOST_IA64) || defined(HOST_MIPS) || \
- defined(HOST_PARISC) || defined(HOST_SPARC64)
+#elif defined(HOST_MIPS) || defined(HOST_SPARC64)
return 4;
#elif defined(HOST_PPC)
return sizeof(void *);
--
2.41.0
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] thunk: Delete checks for old host definitions
2023-08-08 15:23 [PATCH] thunk: Delete checks for old host definitions Akihiko Odaki
@ 2023-08-08 15:32 ` Peter Maydell
2023-08-10 10:56 ` Philippe Mathieu-Daudé
1 sibling, 0 replies; 5+ messages in thread
From: Peter Maydell @ 2023-08-08 15:32 UTC (permalink / raw)
To: Akihiko Odaki
Cc: Alex Bennée, pbonzini, philmd, laurent, deller, qemu-devel,
Richard Henderson, Warner Losh, Kyle Evans
On Tue, 8 Aug 2023 at 16:23, Akihiko Odaki <akihiko.odaki@daynix.com> wrote:
>
> Alpha, IA-64, and PA-RISC hosts are no longer supported.
>
> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
> ---
> include/exec/user/thunk.h | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/include/exec/user/thunk.h b/include/exec/user/thunk.h
> index 300a840d58..d9c131ec80 100644
> --- a/include/exec/user/thunk.h
> +++ b/include/exec/user/thunk.h
> @@ -111,8 +111,7 @@ static inline int thunk_type_size(const argtype *type_ptr, int is_host)
> if (is_host) {
> #if defined(HOST_X86_64)
> return 8;
> -#elif defined(HOST_ALPHA) || defined(HOST_IA64) || defined(HOST_MIPS) || \
> - defined(HOST_PARISC) || defined(HOST_SPARC64)
> +#elif defined(HOST_MIPS) || defined(HOST_SPARC64)
> return 4;
> #elif defined(HOST_PPC)
> return sizeof(void *);
> --
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
thanks
-- PMM
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] thunk: Delete checks for old host definitions
2023-08-08 15:23 [PATCH] thunk: Delete checks for old host definitions Akihiko Odaki
2023-08-08 15:32 ` Peter Maydell
@ 2023-08-10 10:56 ` Philippe Mathieu-Daudé
2023-08-10 21:29 ` Akihiko Odaki
1 sibling, 1 reply; 5+ messages in thread
From: Philippe Mathieu-Daudé @ 2023-08-10 10:56 UTC (permalink / raw)
To: deller, John Paul Adrian Glaubitz
Cc: Alex Bennée, pbonzini, laurent, qemu-devel,
Richard Henderson, Warner Losh, Akihiko Odaki, Kyle Evans
Helge and myself sometime run the tests on a HPPA host
(testing the QEMU tools). I guess remember John Paul
also runs some on Alpha (so Cc'ing him).
Helge, what is your take on this?
On 8/8/23 17:23, Akihiko Odaki wrote:
> Alpha, IA-64, and PA-RISC hosts are no longer supported.
>
> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
> ---
> include/exec/user/thunk.h | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/include/exec/user/thunk.h b/include/exec/user/thunk.h
> index 300a840d58..d9c131ec80 100644
> --- a/include/exec/user/thunk.h
> +++ b/include/exec/user/thunk.h
> @@ -111,8 +111,7 @@ static inline int thunk_type_size(const argtype *type_ptr, int is_host)
> if (is_host) {
> #if defined(HOST_X86_64)
> return 8;
> -#elif defined(HOST_ALPHA) || defined(HOST_IA64) || defined(HOST_MIPS) || \
> - defined(HOST_PARISC) || defined(HOST_SPARC64)
> +#elif defined(HOST_MIPS) || defined(HOST_SPARC64)
> return 4;
> #elif defined(HOST_PPC)
> return sizeof(void *);
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] thunk: Delete checks for old host definitions
2023-08-10 10:56 ` Philippe Mathieu-Daudé
@ 2023-08-10 21:29 ` Akihiko Odaki
2023-08-10 21:50 ` Helge Deller
0 siblings, 1 reply; 5+ messages in thread
From: Akihiko Odaki @ 2023-08-10 21:29 UTC (permalink / raw)
To: Philippe Mathieu-Daudé, deller, John Paul Adrian Glaubitz
Cc: Alex Bennée, pbonzini, laurent, qemu-devel,
Richard Henderson, Warner Losh, Kyle Evans
On 2023/08/10 19:56, Philippe Mathieu-Daudé wrote:
> Helge and myself sometime run the tests on a HPPA host
> (testing the QEMU tools). I guess remember John Paul
> also runs some on Alpha (so Cc'ing him).
>
> Helge, what is your take on this?
This file is only used in userspace emulation so it's not a problem for
Alpha, which does no longer have userspace emulation.
The story is different for HPPA. HPPA has userspace emulation code and
there are also references for HOST_HPPA in coroutine code
(util/async-teardown.c and util/os-posix.c). Probably HPPA support is
broken both for userspace and system emulation. I think it's time to
think of dropping HPPA support for both of userspace and system emulation.
>
> On 8/8/23 17:23, Akihiko Odaki wrote:
>> Alpha, IA-64, and PA-RISC hosts are no longer supported.
>>
>> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
>> ---
>> include/exec/user/thunk.h | 3 +--
>> 1 file changed, 1 insertion(+), 2 deletions(-)
>>
>> diff --git a/include/exec/user/thunk.h b/include/exec/user/thunk.h
>> index 300a840d58..d9c131ec80 100644
>> --- a/include/exec/user/thunk.h
>> +++ b/include/exec/user/thunk.h
>> @@ -111,8 +111,7 @@ static inline int thunk_type_size(const argtype
>> *type_ptr, int is_host)
>> if (is_host) {
>> #if defined(HOST_X86_64)
>> return 8;
>> -#elif defined(HOST_ALPHA) || defined(HOST_IA64) || defined(HOST_MIPS)
>> || \
>> - defined(HOST_PARISC) || defined(HOST_SPARC64)
>> +#elif defined(HOST_MIPS) || defined(HOST_SPARC64)
>> return 4;
>> #elif defined(HOST_PPC)
>> return sizeof(void *);
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] thunk: Delete checks for old host definitions
2023-08-10 21:29 ` Akihiko Odaki
@ 2023-08-10 21:50 ` Helge Deller
0 siblings, 0 replies; 5+ messages in thread
From: Helge Deller @ 2023-08-10 21:50 UTC (permalink / raw)
To: Akihiko Odaki, Philippe Mathieu-Daudé,
John Paul Adrian Glaubitz
Cc: Alex Bennée, pbonzini, laurent, qemu-devel,
Richard Henderson, Warner Losh, Kyle Evans
On 8/10/23 23:29, Akihiko Odaki wrote:
> On 2023/08/10 19:56, Philippe Mathieu-Daudé wrote:
>> Helge and myself sometime run the tests on a HPPA host
I think we mix up HOST and TARGET here....
I run HPPA target (=guest) on x86-64 host.
That means, both qemu-hppa-user and qemu-hppa-system does
run fine for me (on x86-64 "HOST_X86_64" emulating HPPA).
>> (testing the QEMU tools). I guess remember John Paul
>> also runs some on Alpha (so Cc'ing him).
Yes, I think so.
If I find more time I'd like too.
>> Helge, what is your take on this?
>
> This file is only used in userspace emulation so it's not a problem
> for Alpha, which does no longer have userspace emulation.
Akihiko, your statement is correct, but somewhat misleading.
A native alpha machine (as host) isn't any longer able to run a linux-user
emulation to emulate Linux for some other architecture.
That's true.
> The story is different for HPPA. HPPA has userspace emulation code
> and there are also references for HOST_HPPA in coroutine code
> (util/async-teardown.c and util/os-posix.c). Probably HPPA support is
> broken both for userspace and system emulation. I think it's time to
> think of dropping HPPA support for both of userspace and system
> emulation.
HPPA as host... Yes, I think it doesn't make sense to try to emulate
something else on HPPA.
So, I think the patch below is OK.
Helge
>> On 8/8/23 17:23, Akihiko Odaki wrote:
>>> Alpha, IA-64, and PA-RISC hosts are no longer supported.
>>>
>>> Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
>>> ---
>>> include/exec/user/thunk.h | 3 +--
>>> 1 file changed, 1 insertion(+), 2 deletions(-)
>>>
>>> diff --git a/include/exec/user/thunk.h b/include/exec/user/thunk.h
>>> index 300a840d58..d9c131ec80 100644
>>> --- a/include/exec/user/thunk.h
>>> +++ b/include/exec/user/thunk.h
>>> @@ -111,8 +111,7 @@ static inline int thunk_type_size(const argtype *type_ptr, int is_host)
>>> if (is_host) {
>>> #if defined(HOST_X86_64)
>>> return 8;
>>> -#elif defined(HOST_ALPHA) || defined(HOST_IA64) || defined(HOST_MIPS) || \
>>> - defined(HOST_PARISC) || defined(HOST_SPARC64)
>>> +#elif defined(HOST_MIPS) || defined(HOST_SPARC64)
>>> return 4;
>>> #elif defined(HOST_PPC)
>>> return sizeof(void *);
>>
>
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2023-08-10 21:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-08 15:23 [PATCH] thunk: Delete checks for old host definitions Akihiko Odaki
2023-08-08 15:32 ` Peter Maydell
2023-08-10 10:56 ` Philippe Mathieu-Daudé
2023-08-10 21:29 ` Akihiko Odaki
2023-08-10 21:50 ` Helge Deller
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).