qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] target/ppc/cpu-models: Remove the "default" CPU alias
@ 2022-07-05 15:10 Thomas Huth
  2022-07-05 15:47 ` Greg Kurz
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Thomas Huth @ 2022-07-05 15:10 UTC (permalink / raw)
  To: Cédric Le Goater, Daniel Henrique Barboza, qemu-devel
  Cc: David Gibson, Greg Kurz, qemu-ppc

QEMU emulates a *lot* of PowerPC-based machines - having a CPU
that is named "default" and cannot be used with most of those
machines sounds just wrong. Thus let's remove this old and confusing
alias now.

Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 target/ppc/cpu-models.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/target/ppc/cpu-models.c b/target/ppc/cpu-models.c
index 976be5e0d1..2667440f73 100644
--- a/target/ppc/cpu-models.c
+++ b/target/ppc/cpu-models.c
@@ -918,6 +918,6 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
 #endif
     { "ppc32", "604" },
     { "ppc", "604" },
-    { "default", "604" },
+
     { NULL, NULL }
 };
-- 
2.31.1



^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [PATCH] target/ppc/cpu-models: Remove the "default" CPU alias
  2022-07-05 15:10 [PATCH] target/ppc/cpu-models: Remove the "default" CPU alias Thomas Huth
@ 2022-07-05 15:47 ` Greg Kurz
  2022-07-05 15:48 ` Cédric Le Goater
  2022-07-05 15:53 ` Peter Maydell
  2 siblings, 0 replies; 6+ messages in thread
From: Greg Kurz @ 2022-07-05 15:47 UTC (permalink / raw)
  To: Thomas Huth
  Cc: Cédric Le Goater, Daniel Henrique Barboza, qemu-devel,
	David Gibson, qemu-ppc

On Tue,  5 Jul 2022 17:10:30 +0200
Thomas Huth <thuth@redhat.com> wrote:

> QEMU emulates a *lot* of PowerPC-based machines - having a CPU
> that is named "default" and cannot be used with most of those
> machines sounds just wrong. Thus let's remove this old and confusing
> alias now.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---

Good riddance !

Reviewed-by: Greg Kurz <groug@kaod.org>

>  target/ppc/cpu-models.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/ppc/cpu-models.c b/target/ppc/cpu-models.c
> index 976be5e0d1..2667440f73 100644
> --- a/target/ppc/cpu-models.c
> +++ b/target/ppc/cpu-models.c
> @@ -918,6 +918,6 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
>  #endif
>      { "ppc32", "604" },
>      { "ppc", "604" },
> -    { "default", "604" },
> +
>      { NULL, NULL }
>  };



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] target/ppc/cpu-models: Remove the "default" CPU alias
  2022-07-05 15:10 [PATCH] target/ppc/cpu-models: Remove the "default" CPU alias Thomas Huth
  2022-07-05 15:47 ` Greg Kurz
@ 2022-07-05 15:48 ` Cédric Le Goater
  2022-07-05 15:53 ` Peter Maydell
  2 siblings, 0 replies; 6+ messages in thread
From: Cédric Le Goater @ 2022-07-05 15:48 UTC (permalink / raw)
  To: Thomas Huth, Daniel Henrique Barboza, qemu-devel
  Cc: David Gibson, Greg Kurz, qemu-ppc

On 7/5/22 17:10, Thomas Huth wrote:
> QEMU emulates a *lot* of PowerPC-based machines - having a CPU
> that is named "default" and cannot be used with most of those
> machines sounds just wrong. Thus let's remove this old and confusing
> alias now.
> 
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>   target/ppc/cpu-models.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target/ppc/cpu-models.c b/target/ppc/cpu-models.c
> index 976be5e0d1..2667440f73 100644
> --- a/target/ppc/cpu-models.c
> +++ b/target/ppc/cpu-models.c
> @@ -918,6 +918,6 @@ PowerPCCPUAlias ppc_cpu_aliases[] = {
>   #endif
>       { "ppc32", "604" },
>       { "ppc", "604" },
> -    { "default", "604" },
> +
>       { NULL, NULL }
>   };

A default CPU introduced in 1994. Time to change !

Reviewed-by: Cédric Le Goater <clg@kaod.org>

Thanks,

C.


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] target/ppc/cpu-models: Remove the "default" CPU alias
  2022-07-05 15:10 [PATCH] target/ppc/cpu-models: Remove the "default" CPU alias Thomas Huth
  2022-07-05 15:47 ` Greg Kurz
  2022-07-05 15:48 ` Cédric Le Goater
@ 2022-07-05 15:53 ` Peter Maydell
  2022-07-06  6:31   ` Thomas Huth
  2 siblings, 1 reply; 6+ messages in thread
From: Peter Maydell @ 2022-07-05 15:53 UTC (permalink / raw)
  To: Thomas Huth
  Cc: Cédric Le Goater, Daniel Henrique Barboza, qemu-devel,
	David Gibson, Greg Kurz, qemu-ppc

On Tue, 5 Jul 2022 at 16:13, Thomas Huth <thuth@redhat.com> wrote:
>
> QEMU emulates a *lot* of PowerPC-based machines - having a CPU
> that is named "default" and cannot be used with most of those
> machines sounds just wrong. Thus let's remove this old and confusing
> alias now.
>
> Signed-off-by: Thomas Huth <thuth@redhat.com>
> ---
>  target/ppc/cpu-models.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Do we need to document this in removed-features.rst ?

-- PMM


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] target/ppc/cpu-models: Remove the "default" CPU alias
  2022-07-05 15:53 ` Peter Maydell
@ 2022-07-06  6:31   ` Thomas Huth
  2022-07-06 13:40     ` Daniel Henrique Barboza
  0 siblings, 1 reply; 6+ messages in thread
From: Thomas Huth @ 2022-07-06  6:31 UTC (permalink / raw)
  To: Peter Maydell
  Cc: Cédric Le Goater, Daniel Henrique Barboza, qemu-devel,
	David Gibson, Greg Kurz, qemu-ppc

On 05/07/2022 17.53, Peter Maydell wrote:
> On Tue, 5 Jul 2022 at 16:13, Thomas Huth <thuth@redhat.com> wrote:
>>
>> QEMU emulates a *lot* of PowerPC-based machines - having a CPU
>> that is named "default" and cannot be used with most of those
>> machines sounds just wrong. Thus let's remove this old and confusing
>> alias now.
>>
>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>> ---
>>   target/ppc/cpu-models.c | 2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> Do we need to document this in removed-features.rst ?

Honestly, I don't think that anybody ever really used this in the past 15 
years. It was likely used with the "prep" machine, but we removed that one a 
couple of years already. The only machine that is still using this class of 
PowerPC CPUs is its successor, the 40p machine, but it has a 604 by default 
anyway, and I've never seen anybody using "-cpu default" with that machine. 
So IMHO it's not necessary to document this - but if people here have a 
different feeling, then I can also respin the patch, just let me know.

  Thomas



^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH] target/ppc/cpu-models: Remove the "default" CPU alias
  2022-07-06  6:31   ` Thomas Huth
@ 2022-07-06 13:40     ` Daniel Henrique Barboza
  0 siblings, 0 replies; 6+ messages in thread
From: Daniel Henrique Barboza @ 2022-07-06 13:40 UTC (permalink / raw)
  To: Thomas Huth, Peter Maydell
  Cc: Cédric Le Goater, qemu-devel, David Gibson, Greg Kurz,
	qemu-ppc



On 7/6/22 03:31, Thomas Huth wrote:
> On 05/07/2022 17.53, Peter Maydell wrote:
>> On Tue, 5 Jul 2022 at 16:13, Thomas Huth <thuth@redhat.com> wrote:
>>>
>>> QEMU emulates a *lot* of PowerPC-based machines - having a CPU
>>> that is named "default" and cannot be used with most of those
>>> machines sounds just wrong. Thus let's remove this old and confusing
>>> alias now.
>>>
>>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>>> ---
>>>   target/ppc/cpu-models.c | 2 +-
>>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> Do we need to document this in removed-features.rst ?
> 
> Honestly, I don't think that anybody ever really used this in the past 15 years. It was likely used with the "prep" machine, but we removed that one a couple of years already. The only machine that is still using this class of PowerPC CPUs is its successor, the 40p machine, but it has a 604 by default anyway, and I've never seen anybody using "-cpu default" with that machine. So IMHO it's not necessary to document this - but if people here have a different feeling, then I can also respin the patch, just let me know.

I'll queue this up as is, don't worry about it.

You can send an extra patch for removed-features.rst if we really think it's
needed. I don't mind the extra documentation, but NGL this is the first time
I've ever heard of '-cpu default'.


Thanks,


Daniel

> 
>   Thomas
> 


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-07-06 13:42 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-05 15:10 [PATCH] target/ppc/cpu-models: Remove the "default" CPU alias Thomas Huth
2022-07-05 15:47 ` Greg Kurz
2022-07-05 15:48 ` Cédric Le Goater
2022-07-05 15:53 ` Peter Maydell
2022-07-06  6:31   ` Thomas Huth
2022-07-06 13:40     ` Daniel Henrique Barboza

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).