Skip to contentSkip to conversation

hw/mips: Remove the 'r4k' machine

PATCH Applied Philippe Mathieu-Daudé 3 participants 5 messages Nov 2, 2020 – Nov 3, 2020 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 hw/mips: Remove the 'r4k' machine

We deprecated the support for the 'r4k' machine for the 5.0 release (commit d32dc61421), which means that our deprecation policy allows us to drop it in release 5.2. Remove the code.

To repeat the rationale from the deprecation note:
- this virtual machine has no specification
- the Linux kernel dropped support for it 10 years ago

Users are recommended to use the Malta board instead.

---
v3: Move to "Recently removed features" section

---
 docs/system/deprecated.rst                    |  12 +-
 .../devices/mips-softmmu-common.mak           |   1 -
 hw/mips/r4k.c                                 | 318 ------------------
 MAINTAINERS                                   |   6 -
 hw/mips/Kconfig                               |  13 -
 hw/mips/meson.build                           |   1 -
 6 files changed, 6 insertions(+), 345 deletions(-)
 delete mode 100644 hw/mips/r4k.c
docs/system/deprecated.rst +6 -6
index 0ebce37a191..e5b7cf274d3 100644
@@ -327,12 +327,6 @@ The 'scsi-disk' device is deprecated. Users should use 'scsi-hd' or
 System emulator machines
 ------------------------
 
-mips ``r4k`` platform (since 5.0)
-'''''''''''''''''''''''''''''''''
-
-This machine type is very old and unmaintained. Users should use the ``malta``
-machine type instead.
-
 mips ``fulong2e`` machine (since 5.1)
 '''''''''''''''''''''''''''''''''''''
 
@@ -575,6 +569,12 @@ The version specific Spike machines have been removed in favour of the
 generic ``spike`` machine. If you need to specify an older version of the RISC-V
 spec you can use the ``-cpu rv64gcsu,priv_spec=v1.10.0`` command line argument.
 
+mips ``r4k`` platform (removed in 5.2)
+''''''''''''''''''''''''''''''''''''''
+
+This machine type is very old and unmaintained. Users should use the ``malta``
+machine type instead.
+
 Related binaries
 ----------------
 
default-configs/devices/mips-softmmu-common.mak +0 -1
index da29c6c0b24..ea78fe72759 100644
@@ -33,7 +33,6 @@ CONFIG_MC146818RTC=y
 CONFIG_EMPTY_SLOT=y
 CONFIG_MIPS_CPS=y
 CONFIG_MIPS_ITU=y
-CONFIG_R4K=y
 CONFIG_MALTA=y
 CONFIG_PCNET_PCI=y
 CONFIG_MIPSSIM=y
hw/mips/r4k.c deleted +0 -318

318 lines not on this page · raw message

MAINTAINERS +0 -6
index 8c744a9bdf4..77a67becc1f 100644
@@ -1138,12 +1138,6 @@ S: Orphaned
 F: hw/mips/mipssim.c
 F: hw/net/mipsnet.c
 
-R4000
-R: Aurelien Jarno <[email protected]>
-R: Aleksandar Rikalo <[email protected]>
-S: Obsolete
-F: hw/mips/r4k.c
-
 Fuloong 2E
 M: Huacai Chen <[email protected]>
 M: Philippe Mathieu-Daudé <[email protected]>
hw/mips/Kconfig +0 -13
index 67d39c56a4e..8be70122f4c 100644
@@ -1,16 +1,3 @@
-config R4K
-    bool
-    select ISA_BUS
-    select SERIAL_ISA
-    select I8259
-    select I8254
-    select MC146818RTC
-    imply VGA_ISA
-    imply NE2000_ISA
-    select IDE_ISA
-    select PCKBD
-    select PFLASH_CFI01
-
 config MALTA
     bool
     select ISA_SUPERIO
hw/mips/meson.build +0 -1
index 46294b7382f..bcdf96be69f 100644
@@ -6,6 +6,5 @@
 mips_ss.add(when: 'CONFIG_MIPSSIM', if_true: files('mipssim.c'))
 mips_ss.add(when: 'CONFIG_MIPS_BOSTON', if_true: [files('boston.c'), fdt])
 mips_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('cps.c'))
-mips_ss.add(when: 'CONFIG_R4K', if_true: files('r4k.c'))
 
 hw_arch += {'mips': mips_ss}
Signature · 1 line
2.26.2
Reviewed-by on v3 1/1
#1 lore raw
Quoted 42 lines · Philippe Mathieu-Daudé

We deprecated the support for the 'r4k' machine for the 5.0 release (commit d32dc61421), which means that our deprecation policy allows us to drop it in release 5.2. Remove the code.

To repeat the rationale from the deprecation note:
- this virtual machine has no specification
- the Linux kernel dropped support for it 10 years ago

Users are recommended to use the Malta board instead.

---
v3: Move to "Recently removed features" section

---
 docs/system/deprecated.rst                    |  12 +-
 .../devices/mips-softmmu-common.mak           |   1 -
 hw/mips/r4k.c                                 | 318 ------------------
 MAINTAINERS                                   |   6 -
 hw/mips/Kconfig                               |  13 -
 hw/mips/meson.build                           |   1 -
 6 files changed, 6 insertions(+), 345 deletions(-)
 delete mode 100644 hw/mips/r4k.c
docs/system/deprecated.rst +0 -6
index 0ebce37a191..e5b7cf274d3 100644
@@ -327,12 +327,6 @@ The 'scsi-disk' device is deprecated. Users should use 'scsi-hd' or
 System emulator machines
 ------------------------
 
-mips ``r4k`` platform (since 5.0)
-'''''''''''''''''''''''''''''''''
-
-This machine type is very old and unmaintained. Users should use the ``malta``
-machine type instead.
-
 mips ``fulong2e`` machine (since 5.1)
 '''''''''''''''''''''''''''''''''''''
 

docs/system/deprecated.rst The version specific Spike machines have been removed in favour of the · line 576

Quoted 8 lines
docs/system/deprecated.rst +5 -0
@@ -575,6 +569,12 @@ The version specific Spike machines have been removed in favour of the
 generic ``spike`` machine. If you need to specify an older version of the RISC-V
 spec you can use the ``-cpu rv64gcsu,priv_spec=v1.10.0`` command line argument.
 
+mips ``r4k`` platform (removed in 5.2)
+''''''''''''''''''''''''''''''''''''''
+
+This machine type is very old and unmaintained. Users should use the ``malta``
+machine type instead.

Ah, just spotted this v3 - that's better now indeed :-) Maybe change "is very old" into "was very old"?

Anyway:

#2 lore raw
Quoted 46 lines · Thomas Huth
Quoted 45 lines · Philippe Mathieu-Daudé

We deprecated the support for the 'r4k' machine for the 5.0 release (commit d32dc61421), which means that our deprecation policy allows us to drop it in release 5.2. Remove the code.

To repeat the rationale from the deprecation note:
- this virtual machine has no specification
- the Linux kernel dropped support for it 10 years ago

Users are recommended to use the Malta board instead.

---
v3: Move to "Recently removed features" section

---
 docs/system/deprecated.rst                    |  12 +-
 .../devices/mips-softmmu-common.mak           |   1 -
 hw/mips/r4k.c                                 | 318 ------------------
 MAINTAINERS                                   |   6 -
 hw/mips/Kconfig                               |  13 -
 hw/mips/meson.build                           |   1 -
 6 files changed, 6 insertions(+), 345 deletions(-)
 delete mode 100644 hw/mips/r4k.c
docs/system/deprecated.rst +0 -6
index 0ebce37a191..e5b7cf274d3 100644
@@ -327,12 +327,6 @@ The 'scsi-disk' device is deprecated. Users should use 'scsi-hd' or
 System emulator machines
 ------------------------
 
-mips ``r4k`` platform (since 5.0)
-'''''''''''''''''''''''''''''''''
-
-This machine type is very old and unmaintained. Users should use the ``malta``
-machine type instead.
-
 mips ``fulong2e`` machine (since 5.1)
 '''''''''''''''''''''''''''''''''''''
 
@@ -575,6 +569,12 @@ The version specific Spike machines have been removed in favour of the
 generic ``spike`` machine. If you need to specify an older version of the RISC-V
 spec you can use the ``-cpu rv64gcsu,priv_spec=v1.10.0`` command line argument.
 
Quoted 8 lines

docs/system/deprecated.rst The version specific Spike machines have been removed in favour of the · line 576

Quoted 5 lines
docs/system/deprecated.rst +5 -0
+mips ``r4k`` platform (removed in 5.2)
+''''''''''''''''''''''''''''''''''''''
+
+This machine type is very old and unmaintained. Users should use the ``malta``
+machine type instead.

Ah, just spotted this v3 - that's better now indeed :-) Maybe change "is very old" into "was very old"?

OK.

Quoted 3 lines

Anyway:

Thanks!

Acked-by on v3 1/1
#3 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 14 lines · Philippe Mathieu-Daudé

We deprecated the support for the 'r4k' machine for the 5.0 release (commit d32dc61421), which means that our deprecation policy allows us to drop it in release 5.2. Remove the code.

To repeat the rationale from the deprecation note:
- this virtual machine has no specification
- the Linux kernel dropped support for it 10 years ago

Users are recommended to use the Malta board instead.

---
v3: Move to "Recently removed features" section

Quoted 9 lines
---
 docs/system/deprecated.rst                    |  12 +-
 .../devices/mips-softmmu-common.mak           |   1 -
 hw/mips/r4k.c                                 | 318 ------------------
 MAINTAINERS                                   |   6 -
 hw/mips/Kconfig                               |  13 -
 hw/mips/meson.build                           |   1 -
 6 files changed, 6 insertions(+), 345 deletions(-)
 delete mode 100644 hw/mips/r4k.c

To be honest, libvirt doesn't have a single mips-based VM definition in the test-suite, so our mips support is rather theoretical.

On behalf of libvirt:

#4 lore raw
In reply to Philippe Mathieu-Daudé
Quoted 14 lines · Philippe Mathieu-Daudé

We deprecated the support for the 'r4k' machine for the 5.0 release (commit d32dc61421), which means that our deprecation policy allows us to drop it in release 5.2. Remove the code.

To repeat the rationale from the deprecation note:
- this virtual machine has no specification
- the Linux kernel dropped support for it 10 years ago

Users are recommended to use the Malta board instead.

---
v3: Move to "Recently removed features" section

Quoted 9 lines
---
 docs/system/deprecated.rst                    |  12 +-
 .../devices/mips-softmmu-common.mak           |   1 -
 hw/mips/r4k.c                                 | 318 ------------------
 MAINTAINERS                                   |   6 -
 hw/mips/Kconfig                               |  13 -
 hw/mips/meson.build                           |   1 -
 6 files changed, 6 insertions(+), 345 deletions(-)
 delete mode 100644 hw/mips/r4k.c

Applied to mips-next (with the change requested by Thomas).