Skip to contentSkip to conversation

ppc: Remove 405 CPU family

PATCH Superseded Cédric Le Goater 8 participants 29 messages Jan 10, 2025 – May 5 Arm/Amlogic Meson SoC support

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

cover ppc: Remove 405 CPU family

Hello,

This PPC 405 CPU and ref405ep machine was deprecated in QEMU 9.1 because there are no known users, firmware images are not available, OpenWRT dropped support in 2019, U-Boot in 2017, and Linux in 2024. Complete the phase-out process and remove tests, boards, CPU, instructions and related models.

Thanks,

C.

Cédric Le Goater (9):
ppc/ppc405: Remove tests
ppc/ppc405: Remove boards
ppc/ppc405: Remove CPU
ppc/ppc405: Remove storage control (SLER) SPR ppc/ppc405: Remove 40x exception model ppc/ppc405: Remove timer support ppc/ppc405: Remove cache handling instructions ppc/ppc405: Remove TLB instructions ppc/ppc405: Remove POWERPC_MMU_SOFT_4xx MMU model

 MAINTAINERS                      |    6 -
 docs/about/deprecated.rst        |    8 -
 docs/about/removed-features.rst  |    7 +
 docs/system/ppc/embedded.rst     |    1 -
 hw/ppc/ppc405.h                  |  186 -----
 include/hw/ppc/ppc.h             |   15 -
 target/ppc/cpu-models.h          |   30 -
 target/ppc/cpu.h                 |   42 +-
 target/ppc/helper.h              |    7 -
 target/ppc/mmu-booke.h           |    3 -
 target/ppc/spr_common.h          |    6 -
 hw/ppc/ppc.c                     |  251 ------
 hw/ppc/ppc405_boards.c           |  520 -------------
 hw/ppc/ppc405_uc.c               | 1216 ------------------------------
 target/ppc/cpu-models.c          |   57 --
 target/ppc/cpu_init.c            |  257 -------
 target/ppc/excp_helper.c         |  119 ---
 target/ppc/helper_regs.c         |   10 -
 target/ppc/misc_helper.c         |    5 -
 target/ppc/mmu-booke.c           |   63 --
 target/ppc/mmu_common.c          |   71 --
 target/ppc/mmu_helper.c          |   18 +-
 target/ppc/timebase_helper.c     |   20 -
 target/ppc/translate.c           |  136 ----
 tests/qtest/m48t59-test.c        |    5 -
 hw/ppc/Kconfig                   |    9 -
 hw/ppc/meson.build               |    3 -
 hw/ppc/trace-events              |    5 -
 tests/functional/meson.build     |    1 -
 tests/functional/test_ppc_405.py |   37 -
 tests/qtest/meson.build          |    1 -
 31 files changed, 11 insertions(+), 3104 deletions(-)
 delete mode 100644 hw/ppc/ppc405.h
 delete mode 100644 hw/ppc/ppc405_boards.c
 delete mode 100644 hw/ppc/ppc405_uc.c
 delete mode 100755 tests/functional/test_ppc_405.py
Signature · 1 line
2.47.1
#1 lore raw

PATCH 1/9 ppc/ppc405: Remove tests

Since we are about to remove all support for PPC 405, start by removing the tests referring to the ref405ep machine.

---
 tests/qtest/m48t59-test.c        |  5 -----
 tests/functional/meson.build     |  1 -
 tests/functional/test_ppc_405.py | 37 --------------------------------
 tests/qtest/meson.build          |  1 -
 4 files changed, 44 deletions(-)
 delete mode 100755 tests/functional/test_ppc_405.py
tests/qtest/m48t59-test.c +0 -5
index 605797ab785d..1e39a0e8f07a 100644
@@ -247,11 +247,6 @@ static void base_setup(void)
         base_year = 1968;
         base_machine = "SS-5";
         use_mmio = true;
-    } else if (g_str_equal(arch, "ppc") || g_str_equal(arch, "ppc64")) {
-        base = 0xF0000000;
-        base_year = 1968;
-        base_machine = "ref405ep";
-        use_mmio = true;
     } else {
         g_assert_not_reached();
     }
tests/functional/meson.build +0 -1
index a5087fcb34fc..9dd26d0ee8c4 100644
@@ -156,7 +156,6 @@ tests_ppc_system_quick = [
 ]
 
 tests_ppc_system_thorough = [
-  'ppc_405',
   'ppc_40p',
   'ppc_amiga',
   'ppc_bamboo',
tests/functional/test_ppc_405.py deleted +0 -37
deleted file mode 100755
index 9851c03ee998..000000000000
@@ -1,37 +0,0 @@
-#!/usr/bin/env python3
-#
-# Test that the U-Boot firmware boots on ppc 405 machines and check the console
-#
-# Copyright (c) 2021 Red Hat, Inc.
-#
-# This work is licensed under the terms of the GNU GPL, version 2 or
-# later.  See the COPYING file in the top-level directory.
-
-from qemu_test import QemuSystemTest, Asset
-from qemu_test import wait_for_console_pattern
-from qemu_test import exec_command_and_wait_for_pattern
-
-class Ppc405Machine(QemuSystemTest):
-
-    timeout = 90
-
-    ASSET_UBOOT = Asset(
-        ('https://gitlab.com/huth/u-boot/-/raw/taihu-2021-10-09/'
-         'u-boot-taihu.bin'),
-        'a076bb6cdeaafa406330e51e074b66d8878d9036d67d4caa0137be03ee4c112c')
-
-    def do_test_ppc405(self):
-        file_path = self.ASSET_UBOOT.fetch()
-        self.vm.set_console(console_index=1)
-        self.vm.add_args('-bios', file_path)
-        self.vm.launch()
-        wait_for_console_pattern(self, 'AMCC PPC405EP Evaluation Board')
-        exec_command_and_wait_for_pattern(self, 'reset', 'AMCC PowerPC 405EP')
-
-    def test_ppc_ref405ep(self):
-        self.require_accelerator("tcg")
-        self.set_machine('ref405ep')
-        self.do_test_ppc405()
-
-if __name__ == '__main__':
-    QemuSystemTest.main()
tests/qtest/meson.build +0 -1
index c5a70021c50c..48885917d279 100644
@@ -168,7 +168,6 @@ qtests_mips64el = qtests_mips
 qtests_ppc = \
   qtests_filter + \
   (config_all_devices.has_key('CONFIG_ISA_TESTDEV') ? ['endianness-test'] : []) +            \
-  (config_all_devices.has_key('CONFIG_M48T59') ? ['m48t59-test'] : []) +                     \
   (config_all_accel.has_key('CONFIG_TCG') ? ['prom-env-test'] : []) +                              \
   (config_all_accel.has_key('CONFIG_TCG') ? ['boot-serial-test'] : []) +                           \
   ['boot-order-test']
Signature · 1 line
2.47.1
#2 lore raw

Re: [PATCH 1/9] ppc/ppc405: Remove tests

Quoted 11 lines · Cédric Le Goater

Since we are about to remove all support for PPC 405, start by removing the tests referring to the ref405ep machine.

---
  tests/qtest/m48t59-test.c        |  5 -----
  tests/functional/meson.build     |  1 -
  tests/functional/test_ppc_405.py | 37 --------------------------------
  tests/qtest/meson.build          |  1 -
  4 files changed, 44 deletions(-)

delete mode 100755 tests/functional/test_ppc_405.py

Missing removal of MAINTAINERS' entry for the test.

#3 lore raw

PATCH 2/9 ppc/ppc405: Remove boards

In reply to Cédric Le Goater

The ref405ep machine is the only PPC 405 machine. Drop all support by removing the SoC and associated devices as-well as the machine.

---
 MAINTAINERS                     |    6 -
 docs/about/deprecated.rst       |    8 -
 docs/about/removed-features.rst |    7 +
 docs/system/ppc/embedded.rst    |    1 -
 hw/ppc/ppc405.h                 |  186 -----
 hw/ppc/ppc405_boards.c          |  520 -------------
 hw/ppc/ppc405_uc.c              | 1216 -------------------------------
 hw/ppc/Kconfig                  |    9 -
 hw/ppc/meson.build              |    3 -
 9 files changed, 7 insertions(+), 1949 deletions(-)
 delete mode 100644 hw/ppc/ppc405.h
 delete mode 100644 hw/ppc/ppc405_boards.c
 delete mode 100644 hw/ppc/ppc405_uc.c
MAINTAINERS +0 -6
index 2101b5121756..dc48ec4ac081 100644
@@ -1387,12 +1387,6 @@ F: hw/openrisc/openrisc_sim.c
 
 PowerPC Machines
 ----------------
-405 (ref405ep)
-L: [email protected]
-S: Orphan
-F: hw/ppc/ppc405*
-F: tests/functional/test_ppc_405.py
-
 Bamboo
 L: [email protected]
 S: Orphan
docs/about/deprecated.rst +0 -8
index 4a3c302962a0..db9edfc24a0c 100644
@@ -243,14 +243,6 @@ These old machine types are quite neglected nowadays and thus might have
 various pitfalls with regards to live migration. Use a newer machine type
 instead.
 
-PPC 405 ``ref405ep`` machine (since 9.1)
-''''''''''''''''''''''''''''''''''''''''
-
-The ``ref405ep`` machine and PPC 405 CPU have no known users, firmware
-images are not available, OpenWRT dropped support in 2019, U-Boot in
-2017, Linux also is dropping support in 2024. It is time to let go of
-this ancient hardware and focus on newer CPUs and platforms.
-
 Big-Endian variants of MicroBlaze ``petalogix-ml605`` and ``xlnx-zynqmp-pmu`` machines (since 9.2)
 ''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
 
docs/about/removed-features.rst +7 -0
index c6616ce05e59..1a0dae7cf259 100644
@@ -1065,6 +1065,13 @@ for all machine types using the PXA2xx and OMAP2 SoCs. We are also
 dropping the ``cheetah`` OMAP1 board, because we don't have any
 test images for it and don't know of anybody who does.
 
+ppc ``ref405ep`` machine (removed in 10.0)
+''''''''''''''''''''''''''''''''''''''''''
+
+This machine was removed because PPC 405 CPU have no known users,
+firmware images are not available, OpenWRT dropped support in 2019,
+U-Boot in 2017, and Linux in 2024.
+
 linux-user mode CPUs
 --------------------
 
docs/system/ppc/embedded.rst +0 -1
index af3b3d9fa460..5cb7d98b450d 100644
@@ -4,6 +4,5 @@ Embedded family boards
 - ``bamboo``               bamboo
 - ``mpc8544ds``            mpc8544ds
 - ``ppce500``              generic paravirt e500 platform
-- ``ref405ep``             ref405ep
 - ``sam460ex``             aCube Sam460ex
 - ``virtex-ml507``         Xilinx Virtex ML507 reference design
hw/ppc/ppc405.h deleted +0 -186

186 lines not on this page · raw message

hw/ppc/ppc405_boards.c deleted +0 -520

520 lines not on this page · raw message

hw/ppc/ppc405_uc.c deleted +0 -1216

1,216 lines not on this page · raw message

hw/ppc/Kconfig +0 -9
index b44d91bebb2a..ced6bbc7404e 100644
@@ -44,15 +44,6 @@ config POWERNV
     select SSI_M25P80
     select PNV_SPI
 
-config PPC405
-    bool
-    default y
-    depends on PPC
-    select M48T59
-    select PFLASH_CFI02
-    select PPC4XX
-    select SERIAL_MM
-
 config PPC440
     bool
     default y
hw/ppc/meson.build +0 -3
index 7cd91898699e..9893f8adebb0 100644
@@ -57,9 +57,6 @@ ppc_ss.add(when: 'CONFIG_POWERNV', if_true: files(
   'pnv_n1_chiplet.c',
 ))
 # PowerPC 4xx boards
-ppc_ss.add(when: 'CONFIG_PPC405', if_true: files(
-  'ppc405_boards.c',
-  'ppc405_uc.c'))
 ppc_ss.add(when: 'CONFIG_PPC440', if_true: files(
   'ppc440_bamboo.c',
   'ppc440_uc.c'))
Signature · 1 line
2.47.1
#4 lore raw

Re: [PATCH 2/9] ppc/ppc405: Remove boards

Quoted 24 lines · Cédric Le Goater

The ref405ep machine is the only PPC 405 machine. Drop all support by removing the SoC and associated devices as-well as the machine.

---
  MAINTAINERS                     |    6 -
  docs/about/deprecated.rst       |    8 -
  docs/about/removed-features.rst |    7 +
  docs/system/ppc/embedded.rst    |    1 -
  hw/ppc/ppc405.h                 |  186 -----
  hw/ppc/ppc405_boards.c          |  520 -------------
  hw/ppc/ppc405_uc.c              | 1216 -------------------------------
  hw/ppc/Kconfig                  |    9 -
  hw/ppc/meson.build              |    3 -
  9 files changed, 7 insertions(+), 1949 deletions(-)

delete mode 100644 hw/ppc/ppc405.h
delete mode 100644 hw/ppc/ppc405_boards.c
delete mode 100644 hw/ppc/ppc405_uc.c

MAINTAINERS +0 -0
index 2101b5121756..dc48ec4ac081 100644

MAINTAINERS F: hw/openrisc/openrisc_sim.c · line 1394

Quoted 8 lines
MAINTAINERS +0 -5
@@ -1387,12 +1387,6 @@ F: hw/openrisc/openrisc_sim.c
 
  PowerPC Machines
  ----------------
-405 (ref405ep)
-L: [email protected]
-S: Orphan
-F: hw/ppc/ppc405*
-F: tests/functional/test_ppc_405.py

Ah here we go :) This line belong to the previous patch (nitpicking...)

#5 lore raw

PATCH 3/9 ppc/ppc405: Remove CPU

In reply to Cédric Le Goater

Remove the 405 CPU family and all SPR definitions that don't have specific read/write handlers.

---
 target/ppc/cpu-models.h |  30 -----
 target/ppc/cpu.h        |   9 --
 target/ppc/cpu-models.c |  57 ----------
 target/ppc/cpu_init.c   | 246 ----------------------------------------
 4 files changed, 342 deletions(-)
target/ppc/cpu-models.h +0 -30
index 72ad31ba50d7..f23cb383d683 100644
@@ -39,36 +39,6 @@ extern PowerPCCPUAlias ppc_cpu_aliases[];
 /* PVR definitions for most known PowerPC                                    */
 enum {
     /* IBM Processor for Network Resources */
-    CPU_POWERPC_COBRA              = 0x10100000, /* XXX: 405 ? */
-    /* PowerPC 405 family */
-    /* PowerPC 405 cores */
-    CPU_POWERPC_405D2              = 0x20010000,
-    CPU_POWERPC_405D4              = 0x41810000,
-    /* PowerPC 405 microcontrollers */
-    /* XXX: missing 0x200108a0 */
-    CPU_POWERPC_405CRa             = 0x40110041,
-    CPU_POWERPC_405CRb             = 0x401100C5,
-    CPU_POWERPC_405CRc             = 0x40110145,
-    CPU_POWERPC_405EP              = 0x51210950,
-    CPU_POWERPC_405EZ              = 0x41511460, /* 0x51210950 ? */
-    CPU_POWERPC_405GPa             = 0x40110000,
-    CPU_POWERPC_405GPb             = 0x40110040,
-    CPU_POWERPC_405GPc             = 0x40110082,
-    CPU_POWERPC_405GPd             = 0x401100C4,
-    CPU_POWERPC_405GPR             = 0x50910951,
-    CPU_POWERPC_405LP              = 0x41F10000,
-    /* IBM network processors */
-    CPU_POWERPC_NPE405H            = 0x414100C0,
-    CPU_POWERPC_NPE405H2           = 0x41410140,
-    CPU_POWERPC_NPE405L            = 0x416100C0,
-    CPU_POWERPC_NPE4GS3            = 0x40B10000,
-    /* IBM STBxxx (PowerPC 401/403/405 core based microcontrollers) */
-    CPU_POWERPC_STB03              = 0x40310000, /* 0x40130000 ? */
-    CPU_POWERPC_STB04              = 0x41810000,
-    CPU_POWERPC_STB25              = 0x51510950,
-    /* Xilinx cores */
-    CPU_POWERPC_X2VP4              = 0x20010820,
-    CPU_POWERPC_X2VP20             = 0x20010860,
     /* PowerPC 440 family */
     /* Generic PowerPC 440 */
 #define CPU_POWERPC_440              CPU_POWERPC_440GXf
target/ppc/cpu.h +0 -9
index 0b8b4c051724..0fe44cedb1b3 100644
@@ -270,8 +270,6 @@ typedef enum powerpc_input_t {
     PPC_FLAGS_INPUT_6xx,
     /* BookE bus                        */
     PPC_FLAGS_INPUT_BookE,
-    /* PowerPC 405 bus                  */
-    PPC_FLAGS_INPUT_405,
     /* PowerPC 970 bus                  */
     PPC_FLAGS_INPUT_970,
     /* PowerPC POWER7 bus               */
@@ -2172,9 +2170,7 @@ void ppc_compat_add_property(Object *obj, const char *name,
 #define SPR_BAMR              (0x3B7)
 #define SPR_7XX_MMCR0         (0x3B8)
 #define SPR_7XX_PMC1          (0x3B9)
-#define SPR_40x_SGR           (0x3B9)
 #define SPR_7XX_PMC2          (0x3BA)
-#define SPR_40x_DCWR          (0x3BA)
 #define SPR_7XX_SIAR          (0x3BB)
 #define SPR_405_SLER          (0x3BB)
 #define SPR_7XX_MMCR1         (0x3BC)
@@ -2223,7 +2219,6 @@ void ppc_compat_add_property(Object *obj, const char *name,
 #define SPR_40x_DBSR          (0x3F0)
 #define SPR_HID1              (0x3F1)
 #define SPR_IABR              (0x3F2)
-#define SPR_40x_DBCR0         (0x3F2)
 #define SPR_Exxx_L1CSR0       (0x3F2)
 #define SPR_ICTRL             (0x3F3)
 #define SPR_HID2              (0x3F3)
@@ -2232,20 +2227,16 @@ void ppc_compat_add_property(Object *obj, const char *name,
 #define SPR_440_DBDR          (0x3F3)
 #define SPR_LDSTDB            (0x3F4)
 #define SPR_750_TDCL          (0x3F4)
-#define SPR_40x_IAC1          (0x3F4)
 #define SPR_MMUCSR0           (0x3F4)
 #define SPR_970_HID4          (0x3F4)
 #define SPR_DABR              (0x3F5)
 #define DABR_MASK (~(target_ulong)0x7)
 #define SPR_Exxx_BUCSR        (0x3F5)
-#define SPR_40x_IAC2          (0x3F5)
-#define SPR_40x_DAC1          (0x3F6)
 #define SPR_MSSCR0            (0x3F6)
 #define SPR_970_HID5          (0x3F6)
 #define SPR_MSSSR0            (0x3F7)
 #define SPR_MSSCR1            (0x3F7)
 #define SPR_DABRX             (0x3F7)
-#define SPR_40x_DAC2          (0x3F7)
 #define SPR_MMUCFG            (0x3F7)
 #define SPR_LDSTCR            (0x3F8)
 #define SPR_L2PMCR            (0x3F8)
target/ppc/cpu-models.c +0 -57

69 lines not on this page · raw message

target/ppc/cpu_init.c +0 -246

264 lines not on this page · raw message

Signature · 1 line
2.47.1
#6 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.

Quoted 197 lines · Cédric Le Goater

Remove the 405 CPU family and all SPR definitions that don't have specific read/write handlers.

---
  target/ppc/cpu-models.h |  30 -----
  target/ppc/cpu.h        |   9 --
  target/ppc/cpu-models.c |  57 ----------
  target/ppc/cpu_init.c   | 246 ----------------------------------------
  4 files changed, 342 deletions(-)
target/ppc/cpu-models.h +0 -30
index 72ad31ba50d7..f23cb383d683 100644
@@ -39,36 +39,6 @@ extern PowerPCCPUAlias ppc_cpu_aliases[];
  /* PVR definitions for most known PowerPC                                    */
  enum {
      /* IBM Processor for Network Resources */
-    CPU_POWERPC_COBRA              = 0x10100000, /* XXX: 405 ? */
-    /* PowerPC 405 family */
-    /* PowerPC 405 cores */
-    CPU_POWERPC_405D2              = 0x20010000,
-    CPU_POWERPC_405D4              = 0x41810000,
-    /* PowerPC 405 microcontrollers */
-    /* XXX: missing 0x200108a0 */
-    CPU_POWERPC_405CRa             = 0x40110041,
-    CPU_POWERPC_405CRb             = 0x401100C5,
-    CPU_POWERPC_405CRc             = 0x40110145,
-    CPU_POWERPC_405EP              = 0x51210950,
-    CPU_POWERPC_405EZ              = 0x41511460, /* 0x51210950 ? */
-    CPU_POWERPC_405GPa             = 0x40110000,
-    CPU_POWERPC_405GPb             = 0x40110040,
-    CPU_POWERPC_405GPc             = 0x40110082,
-    CPU_POWERPC_405GPd             = 0x401100C4,
-    CPU_POWERPC_405GPR             = 0x50910951,
-    CPU_POWERPC_405LP              = 0x41F10000,
-    /* IBM network processors */
-    CPU_POWERPC_NPE405H            = 0x414100C0,
-    CPU_POWERPC_NPE405H2           = 0x41410140,
-    CPU_POWERPC_NPE405L            = 0x416100C0,
-    CPU_POWERPC_NPE4GS3            = 0x40B10000,
-    /* IBM STBxxx (PowerPC 401/403/405 core based microcontrollers) */
-    CPU_POWERPC_STB03              = 0x40310000, /* 0x40130000 ? */
-    CPU_POWERPC_STB04              = 0x41810000,
-    CPU_POWERPC_STB25              = 0x51510950,
-    /* Xilinx cores */
-    CPU_POWERPC_X2VP4              = 0x20010820,
-    CPU_POWERPC_X2VP20             = 0x20010860,
      /* PowerPC 440 family */
 
 
target/ppc/cpu-models.c +0 -120
index ece348178188..9d8f479fae70 100644
@@ -67,56 +67,6 @@
      POWERPC_DEF_SVR(_name, _desc, _pvr, POWERPC_SVR_NONE, _type)
 
      /* Embedded PowerPC                                                      */
-    /* PowerPC 405 family                                                    */
-    /* PowerPC 405 cores                                                     */
-    POWERPC_DEF("405d2",         CPU_POWERPC_405D2,                  405,
-                "PowerPC 405 D2")
-    POWERPC_DEF("405d4",         CPU_POWERPC_405D4,                  405,
-                "PowerPC 405 D4")
-    /* PowerPC 405 microcontrollers                                          */
-    POWERPC_DEF("405cra",        CPU_POWERPC_405CRa,                 405,
-                "PowerPC 405 CRa")
-    POWERPC_DEF("405crb",        CPU_POWERPC_405CRb,                 405,
-                "PowerPC 405 CRb")
-    POWERPC_DEF("405crc",        CPU_POWERPC_405CRc,                 405,
-                "PowerPC 405 CRc")
-    POWERPC_DEF("405ep",         CPU_POWERPC_405EP,                  405,
-                "PowerPC 405 EP")
-    POWERPC_DEF("405ez",         CPU_POWERPC_405EZ,                  405,
-                "PowerPC 405 EZ")
-    POWERPC_DEF("405gpa",        CPU_POWERPC_405GPa,                 405,
-                "PowerPC 405 GPa")
-    POWERPC_DEF("405gpb",        CPU_POWERPC_405GPb,                 405,
-                "PowerPC 405 GPb")
-    POWERPC_DEF("405gpc",        CPU_POWERPC_405GPc,                 405,
-                "PowerPC 405 GPc")
-    POWERPC_DEF("405gpd",        CPU_POWERPC_405GPd,                 405,
-                "PowerPC 405 GPd")
-    POWERPC_DEF("405gpr",        CPU_POWERPC_405GPR,                 405,
-                "PowerPC 405 GPR")
-    POWERPC_DEF("405lp",         CPU_POWERPC_405LP,                  405,
-                "PowerPC 405 LP")
-    POWERPC_DEF("npe405h",       CPU_POWERPC_NPE405H,                405,
-                "Npe405 H")
-    POWERPC_DEF("npe405h2",      CPU_POWERPC_NPE405H2,               405,
-                "Npe405 H2")
-    POWERPC_DEF("npe405l",       CPU_POWERPC_NPE405L,                405,
-                "Npe405 L")
-    POWERPC_DEF("npe4gs3",       CPU_POWERPC_NPE4GS3,                405,
-                "Npe4GS3")
-    /* PowerPC 401/403/405 based set-top-box microcontrollers                */
-    POWERPC_DEF("stb03",         CPU_POWERPC_STB03,                  405,
-                "STB03xx")
-    POWERPC_DEF("stb04",         CPU_POWERPC_STB04,                  405,
-                "STB04xx")
-    POWERPC_DEF("stb25",         CPU_POWERPC_STB25,                  405,
-                "STB25xx")
-    /* Xilinx PowerPC 405 cores                                              */
-    POWERPC_DEF("x2vp4",         CPU_POWERPC_X2VP4,                  405,
-                NULL)
-    POWERPC_DEF("x2vp20",        CPU_POWERPC_X2VP20,                 405,
-                NULL)
-    /* PowerPC 440 family                                                    */
  #if defined(TODO_USER_ONLY)
      POWERPC_DEF("440",           CPU_POWERPC_440,                    440GP,
                  "Generic PowerPC 440")
@@ -742,13 +692,6 @@
  /* PowerPC CPU aliases                                                     */
 
  PowerPCCPUAlias ppc_cpu_aliases[] = {
-    { "405", "405d4" },
-    { "405cr", "405crc" },
-    { "405gp", "405gpd" },
-    { "405gpe", "405crc" },
-    { "x2vp7", "x2vp4" },
-    { "x2vp50", "x2vp20" },
 
  /*****************************************************************************/
  /* Exception vectors models                                                  */
-static void init_excp_4xx(CPUPPCState *env)
-{
-#if !defined(CONFIG_USER_ONLY)
-    env->excp_vectors[POWERPC_EXCP_CRITICAL] = 0x00000100;
-    env->excp_vectors[POWERPC_EXCP_MCHECK]   = 0x00000200;
-    env->excp_vectors[POWERPC_EXCP_DSI]      = 0x00000300;
-    env->excp_vectors[POWERPC_EXCP_ISI]      = 0x00000400;
-    env->excp_vectors[POWERPC_EXCP_EXTERNAL] = 0x00000500;
-    env->excp_vectors[POWERPC_EXCP_ALIGN]    = 0x00000600;
-    env->excp_vectors[POWERPC_EXCP_PROGRAM]  = 0x00000700;
-    env->excp_vectors[POWERPC_EXCP_SYSCALL]  = 0x00000C00;
-    env->excp_vectors[POWERPC_EXCP_PIT]      = 0x00001000;
-    env->excp_vectors[POWERPC_EXCP_FIT]      = 0x00001010;
-    env->excp_vectors[POWERPC_EXCP_WDT]      = 0x00001020;
-    env->excp_vectors[POWERPC_EXCP_DTLB]     = 0x00001100;
-    env->excp_vectors[POWERPC_EXCP_ITLB]     = 0x00001200;
-    env->excp_vectors[POWERPC_EXCP_DEBUG]    = 0x00002000;
-    env->ivor_mask = 0x0000FFF0UL;
-    env->ivpr_mask = 0xFFFF0000UL;
-    /* Hardware reset vector */
-    env->hreset_vector = 0xFFFFFFFCUL;
-#endif
-}
-
  static void init_excp_MPC5xx(CPUPPCState *env)
  {
  #if !defined(CONFIG_USER_ONLY)
@@ -2138,57 +1943,6 @@ static void init_tlbs_emb(CPUPPCState *env)
  #endif
  }
 
-static void init_proc_405(CPUPPCState *env)
-{
-    register_40x_sprs(env);
-    register_405_sprs(env);
-    register_usprgh_sprs(env);
-
-    init_tlbs_emb(env);
-    init_excp_4xx(env);
-    env->dcache_line_size = 32;
-    env->icache_line_size = 32;
-    /* Allocate hardware IRQ controller */
-    ppc40x_irq_init(env_archcpu(env));
-
-    SET_FIT_PERIOD(8, 12, 16, 20);
-    SET_WDT_PERIOD(16, 20, 24, 28);
-}
-
-POWERPC_FAMILY(405)(ObjectClass *oc, void *data)
-{
-    DeviceClass *dc = DEVICE_CLASS(oc);
-    PowerPCCPUClass *pcc = POWERPC_CPU_CLASS(oc);
-
-    dc->desc = "PowerPC 405";
-    pcc->init_proc = init_proc_405;
-    pcc->check_pow = check_pow_nocheck;
-    pcc->check_attn = check_attn_none;
-    pcc->insns_flags = PPC_INSNS_BASE | PPC_STRING | PPC_MFTB |
-                       PPC_DCR | PPC_WRTEE |
-                       PPC_CACHE | PPC_CACHE_ICBI | PPC_40x_ICBT |
-                       PPC_CACHE_DCBZ | PPC_CACHE_DCBA |
-                       PPC_MEM_SYNC | PPC_MEM_EIEIO |
-                       PPC_40x_TLB | PPC_MEM_TLBIA | PPC_MEM_TLBSYNC |
-                       PPC_4xx_COMMON | PPC_405_MAC | PPC_40x_EXCP;
-    pcc->msr_mask = (1ull << MSR_WE) |
-                    (1ull << MSR_CE) |
-                    (1ull << MSR_EE) |
-                    (1ull << MSR_PR) |
-                    (1ull << MSR_FP) |
-                    (1ull << MSR_ME) |
-                    (1ull << MSR_DWE) |

target/ppc/cpu-models.c static void init_tlbs_emb(CPUPPCState *env) · line 2190

Quoted 10 lines
target/ppc/cpu-models.c +0 -10
-                    (1ull << MSR_DE) |
-                    (1ull << MSR_IR) |
-                    (1ull << MSR_DR);
-    pcc->mmu_model = POWERPC_MMU_SOFT_4xx;
-    pcc->excp_model = POWERPC_EXCP_40x;
-    pcc->bus_model = PPC_FLAGS_INPUT_405;
-    pcc->bfd_mach = bfd_mach_ppc_403;
-    pcc->flags = POWERPC_FLAG_CE | POWERPC_FLAG_DWE |
-                 POWERPC_FLAG_DE | POWERPC_FLAG_BUS_CLK;
-}

The deprecation message (see previous patch) was about the "ppc ``ref405ep`` machine". Is that OK we remove these CPUs for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2            PVR 20010000
PowerPC 405gpa           PVR 40110000
PowerPC 405gpb           PVR 40110040
PowerPC 405cra           PVR 40110041
PowerPC 405gpc           PVR 40110082
PowerPC 405gpd           PVR 401100c4
PowerPC 405gp            (alias for 405gpd)
PowerPC 405crb           PVR 401100c5
PowerPC 405crc           PVR 40110145
PowerPC 405cr            (alias for 405crc)
PowerPC 405gpe           (alias for 405crc)
PowerPC npe405h          PVR 414100c0
PowerPC npe405h2         PVR 41410140
PowerPC 405ez            PVR 41511460
PowerPC npe405l          PVR 416100c0
PowerPC 405d4            PVR 41810000
PowerPC 405              (alias for 405d4)
PowerPC 405lp            PVR 41f10000
PowerPC 405gpr           PVR 50910951
PowerPC 405ep            PVR 51210950

Regards,

Phil.

#7 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

Quoted 4 lines · Philippe Mathieu-Daudé

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.

...

Quoted 17 lines

The deprecation message (see previous patch) was about the "ppc ``ref405ep`` machine". Is that OK we remove these CPUs for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2            PVR 20010000
PowerPC 405gpa           PVR 40110000
PowerPC 405gpb           PVR 40110040
PowerPC 405cra           PVR 40110041
PowerPC 405gpc           PVR 40110082
PowerPC 405gpd           PVR 401100c4
PowerPC 405gp            (alias for 405gpd)
PowerPC 405crb           PVR 401100c5
PowerPC 405crc           PVR 40110145
PowerPC 405cr            (alias for 405crc)
PowerPC 405gpe           (alias for 405crc)
PowerPC npe405h          PVR 414100c0
Quoted 8 lines
PowerPC npe405h2         PVR 41410140
PowerPC 405ez            PVR 41511460
PowerPC npe405l          PVR 416100c0
PowerPC 405d4            PVR 41810000
PowerPC 405              (alias for 405d4)
PowerPC 405lp            PVR 41f10000
PowerPC 405gpr           PVR 50910951
PowerPC 405ep            PVR 51210950

Up to the ppc maintainers. I don't know of anything interesting at the user-only level wrt these cpus.

r~

#8 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

Quoted 32 lines · Richard Henderson
Quoted 4 lines · Philippe Mathieu-Daudé

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.

...

Quoted 17 lines

The deprecation message (see previous patch) was about the "ppc ``ref405ep`` machine". Is that OK we remove these CPUs for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2            PVR 20010000
PowerPC 405gpa           PVR 40110000
PowerPC 405gpb           PVR 40110040
PowerPC 405cra           PVR 40110041
PowerPC 405gpc           PVR 40110082
PowerPC 405gpd           PVR 401100c4
PowerPC 405gp            (alias for 405gpd)
PowerPC 405crb           PVR 401100c5
PowerPC 405crc           PVR 40110145
PowerPC 405cr            (alias for 405crc)
PowerPC 405gpe           (alias for 405crc)
PowerPC npe405h          PVR 414100c0
Quoted 8 lines
PowerPC npe405h2         PVR 41410140
PowerPC 405ez            PVR 41511460
PowerPC npe405l          PVR 416100c0
PowerPC 405d4            PVR 41810000
PowerPC 405              (alias for 405d4)
PowerPC 405lp            PVR 41f10000
PowerPC 405gpr           PVR 50910951
PowerPC 405ep            PVR 51210950
Quoted 2 lines

Up to the ppc maintainers. I don't know of anything interesting at the user-only level wrt these cpus.

Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER chips. There is an OCC power management controller which is a 405 and some other weird cut down 405 derivatives, we're not up to those yet but we want to model them.

We should be able to remove a bunch of boards and CPUs, I just haven't started looking, so might be easier to wait for a bit. If it's not causing others too much problem, could we leave this in for the time being?

Thanks,
Nick

#9 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

Quoted 43 lines · Nicholas Piggin
Quoted 32 lines · Richard Henderson
Quoted 4 lines · Philippe Mathieu-Daudé

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.

...

Quoted 17 lines

The deprecation message (see previous patch) was about the "ppc ``ref405ep`` machine". Is that OK we remove these CPUs for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2            PVR 20010000
PowerPC 405gpa           PVR 40110000
PowerPC 405gpb           PVR 40110040
PowerPC 405cra           PVR 40110041
PowerPC 405gpc           PVR 40110082
PowerPC 405gpd           PVR 401100c4
PowerPC 405gp            (alias for 405gpd)
PowerPC 405crb           PVR 401100c5
PowerPC 405crc           PVR 40110145
PowerPC 405cr            (alias for 405crc)
PowerPC 405gpe           (alias for 405crc)
PowerPC npe405h          PVR 414100c0
Quoted 8 lines
PowerPC npe405h2         PVR 41410140
PowerPC 405ez            PVR 41511460
PowerPC npe405l          PVR 416100c0
PowerPC 405d4            PVR 41810000
PowerPC 405              (alias for 405d4)
PowerPC 405lp            PVR 41f10000
PowerPC 405gpr           PVR 50910951
PowerPC 405ep            PVR 51210950
Quoted 2 lines

Up to the ppc maintainers. I don't know of anything interesting at the user-only level wrt these cpus.

Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER chips. There is an OCC power management controller which is a 405 and some other weird cut down 405 derivatives, we're not up to those yet but we want to model them.

Quoted 4 lines

We should be able to remove a bunch of boards and CPUs, I just haven't started looking, so might be easier to wait for a bit. If it's not causing others too much problem, could we leave this in for the time being?

Sure. We will need a new SoC for the OCC and a firmware image. I think these can be built from https://github.com/open-power/occ or, if not, they should be made available.

Thanks,

C.

#10 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

Quoted 44 lines · Cédric Le Goater
Quoted 43 lines · Nicholas Piggin
Quoted 32 lines · Richard Henderson
Quoted 4 lines · Philippe Mathieu-Daudé

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.

...

Quoted 17 lines

The deprecation message (see previous patch) was about the "ppc ``ref405ep`` machine". Is that OK we remove these CPUs for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2            PVR 20010000
PowerPC 405gpa           PVR 40110000
PowerPC 405gpb           PVR 40110040
PowerPC 405cra           PVR 40110041
PowerPC 405gpc           PVR 40110082
PowerPC 405gpd           PVR 401100c4
PowerPC 405gp            (alias for 405gpd)
PowerPC 405crb           PVR 401100c5
PowerPC 405crc           PVR 40110145
PowerPC 405cr            (alias for 405crc)
PowerPC 405gpe           (alias for 405crc)
PowerPC npe405h          PVR 414100c0
Quoted 8 lines
PowerPC npe405h2         PVR 41410140
PowerPC 405ez            PVR 41511460
PowerPC npe405l          PVR 416100c0
PowerPC 405d4            PVR 41810000
PowerPC 405              (alias for 405d4)
PowerPC 405lp            PVR 41f10000
PowerPC 405gpr           PVR 50910951
PowerPC 405ep            PVR 51210950
Quoted 2 lines

Up to the ppc maintainers.  I don't know of anything interesting at the user-only level wrt these cpus.

Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER chips. There is an OCC power management controller which is a 405 and some other weird cut down 405 derivatives, we're not up to those yet but we want to model them.

Quoted 8 lines
Quoted 4 lines

We should be able to remove a bunch of boards and CPUs, I just haven't started looking, so might be easier to wait for a bit. If it's not causing others too much problem, could we leave this in for the time being?

Sure. We will need a new SoC for the OCC and a firmware image. I think these can be built from https://github.com/open-power/occ or, if not, they should be made available.

Should we proceed with this removal now than v11.0.0 is released?

#11 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Glenn,
Please take a look and let us know your thoughts.

regards,
Harsh

Quoted 56 lines · Philippe Mathieu-Daudé
Quoted 44 lines · Cédric Le Goater
Quoted 43 lines · Nicholas Piggin
Quoted 32 lines · Richard Henderson
Quoted 4 lines · Philippe Mathieu-Daudé

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.

...

Quoted 17 lines

The deprecation message (see previous patch) was about the "ppc ``ref405ep`` machine". Is that OK we remove these CPUs for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2            PVR 20010000
PowerPC 405gpa           PVR 40110000
PowerPC 405gpb           PVR 40110040
PowerPC 405cra           PVR 40110041
PowerPC 405gpc           PVR 40110082
PowerPC 405gpd           PVR 401100c4
PowerPC 405gp            (alias for 405gpd)
PowerPC 405crb           PVR 401100c5
PowerPC 405crc           PVR 40110145
PowerPC 405cr            (alias for 405crc)
PowerPC 405gpe           (alias for 405crc)
PowerPC npe405h          PVR 414100c0
Quoted 8 lines
PowerPC npe405h2         PVR 41410140
PowerPC 405ez            PVR 41511460
PowerPC npe405l          PVR 416100c0
PowerPC 405d4            PVR 41810000
PowerPC 405              (alias for 405d4)
PowerPC 405lp            PVR 41f10000
PowerPC 405gpr           PVR 50910951
PowerPC 405ep            PVR 51210950
Quoted 2 lines

Up to the ppc maintainers.  I don't know of anything interesting at the user-only level wrt these cpus.

Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER chips. There is an OCC power management controller which is a 405 and some other weird cut down 405 derivatives, we're not up to those yet but we want to model them.

Quoted 8 lines
Quoted 4 lines

We should be able to remove a bunch of boards and CPUs, I just haven't started looking, so might be easier to wait for a bit. If it's not causing others too much problem, could we leave this in for the time being?

Sure. We will need a new SoC for the OCC and a firmware image. I think these can be built from https://github.com/open-power/occ or, if not, they should be made available.

Should we proceed with this removal now than v11.0.0 is released?

#12 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

Hi Harsh,

Quoted 4 lines · Harsh Prateek Bora

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Glenn,
Please take a look and let us know your thoughts.

Glenn can have a look, but I think we are good to remove them now, they have been deprecated for more than 1 year, enough time for any reaction ;) Otherwise that'd defeat the point of deprecating and the pain for us to schedule and wait for months.

My 'Should we proceed' was more of a polite ping than a question ;)

Quoted 63 lines

regards,
Harsh

Quoted 56 lines · Philippe Mathieu-Daudé
Quoted 44 lines · Cédric Le Goater
Quoted 43 lines · Nicholas Piggin
Quoted 32 lines · Richard Henderson
Quoted 4 lines · Philippe Mathieu-Daudé

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.

...

Quoted 17 lines

The deprecation message (see previous patch) was about the "ppc ``ref405ep`` machine". Is that OK we remove these CPUs for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2            PVR 20010000
PowerPC 405gpa           PVR 40110000
PowerPC 405gpb           PVR 40110040
PowerPC 405cra           PVR 40110041
PowerPC 405gpc           PVR 40110082
PowerPC 405gpd           PVR 401100c4
PowerPC 405gp            (alias for 405gpd)
PowerPC 405crb           PVR 401100c5
PowerPC 405crc           PVR 40110145
PowerPC 405cr            (alias for 405crc)
PowerPC 405gpe           (alias for 405crc)
PowerPC npe405h          PVR 414100c0
Quoted 8 lines
PowerPC npe405h2         PVR 41410140
PowerPC 405ez            PVR 41511460
PowerPC npe405l          PVR 416100c0
PowerPC 405d4            PVR 41810000
PowerPC 405              (alias for 405d4)
PowerPC 405lp            PVR 41f10000
PowerPC 405gpr           PVR 50910951
PowerPC 405ep            PVR 51210950
Quoted 2 lines

Up to the ppc maintainers.  I don't know of anything interesting at the user-only level wrt these cpus.

Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER chips. There is an OCC power management controller which is a 405 and some other weird cut down 405 derivatives, we're not up to those yet but we want to model them.

Quoted 8 lines
Quoted 4 lines

We should be able to remove a bunch of boards and CPUs, I just haven't started looking, so might be easier to wait for a bit. If it's not causing others too much problem, could we leave this in for the time being?

Sure. We will need a new SoC for the OCC and a firmware image. I think these can be built from https://github.com/open-power/occ or, if not, they should be made available.

Should we proceed with this removal now than v11.0.0 is released?

#13 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

Quoted 5 lines · Philippe Mathieu-Daudé

Hi Harsh,

Quoted 2 lines · Harsh Prateek Bora

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Quoted 7 lines
Quoted 2 lines

Glenn,
Please take a look and let us know your thoughts.

Glenn can have a look, but I think we are good to remove them now, they have been deprecated for more than 1 year, enough time for any reaction ;) Otherwise that'd defeat the point of deprecating and the pain for us to schedule and wait for months.

Philippe,

Sorry, I thought it had been made clear back in August of last year that we would need the PPC405 CPU to hang around. The topic was brought up by Cedric when I added support for the PPE42 processor. Is there some formal process I need to go through to have it removed from the deprecated list?

Thanks,

Glenn

Quoted 66 lines

My 'Should we proceed' was more of a polite ping than a question ;)

Quoted 63 lines

regards,
Harsh

Quoted 57 lines · Philippe Mathieu-Daudé
Quoted 45 lines · Cédric Le Goater
Quoted 44 lines · Nicholas Piggin
Quoted 32 lines · Richard Henderson
Quoted 4 lines · Philippe Mathieu-Daudé

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.

...

Quoted 17 lines

The deprecation message (see previous patch) was about the "ppc ``ref405ep`` machine". Is that OK we remove these CPUs for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2            PVR 20010000
PowerPC 405gpa           PVR 40110000
PowerPC 405gpb           PVR 40110040
PowerPC 405cra           PVR 40110041
PowerPC 405gpc           PVR 40110082
PowerPC 405gpd           PVR 401100c4
PowerPC 405gp            (alias for 405gpd)
PowerPC 405crb           PVR 401100c5
PowerPC 405crc           PVR 40110145
PowerPC 405cr            (alias for 405crc)
PowerPC 405gpe           (alias for 405crc)
PowerPC npe405h          PVR 414100c0
Quoted 8 lines
PowerPC npe405h2         PVR 41410140
PowerPC 405ez            PVR 41511460
PowerPC npe405l          PVR 416100c0
PowerPC 405d4            PVR 41810000
PowerPC 405              (alias for 405d4)
PowerPC 405lp            PVR 41f10000
PowerPC 405gpr           PVR 50910951
PowerPC 405ep            PVR 51210950
Quoted 3 lines

Up to the ppc maintainers. I don't know of anything interesting at the user-only level
wrt these cpus.

Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER chips. There is an OCC power management controller which is a 405 and some other weird cut down 405 derivatives, we're not up to those yet but we want to model them.

Quoted 8 lines
Quoted 4 lines

We should be able to remove a bunch of boards and CPUs, I just haven't started looking, so might be easier to wait for a bit. If it's not causing others too much problem, could we leave this in for the time being?

Sure. We will need a new SoC for the OCC and a firmware image. I think these can be built from https://github.com/open-power/occ or, if not, they should be made available.

Should we proceed with this removal now than v11.0.0 is released?

#14 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

Hello Glenn,

Quoted 14 lines · Miles Glenn
Quoted 5 lines · Philippe Mathieu-Daudé

Hi Harsh,

Quoted 2 lines · Harsh Prateek Bora

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Quoted 7 lines
Quoted 2 lines

Glenn,
Please take a look and let us know your thoughts.

Glenn can have a look, but I think we are good to remove them now, they have been deprecated for more than 1 year, enough time for any reaction ;) Otherwise that'd defeat the point of deprecating and the pain for us to schedule and wait for months.

Quoted 7 lines

Philippe,

Sorry, I thought it had been made clear back in August of last year that we would need the PPC405 CPU to hang around. The topic was brought up by Cedric when I added support for the PPE42 processor. Is there some formal process I need to go through to have it removed from the deprecated list?

I don't know of any un-deprecation process. I suggest sending a patch to revert commit 52f0b59ec6b7 ("hw/ppc: Deprecate 405 CPUs"). The commit log should mention the PPE42 processor which is a stripped down version of the IBM PowerPC 405 processor.

Thanks,

C.

https://lore.kernel.org/all/[email protected]/

#15 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

Cc'ing Daniel and Thomas, our deprecation experts.

Quoted 26 lines · Cédric Le Goater

Hello Glenn,

Quoted 14 lines · Miles Glenn
Quoted 5 lines · Philippe Mathieu-Daudé

Hi Harsh,

Quoted 2 lines · Harsh Prateek Bora

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Quoted 7 lines
Quoted 2 lines

Glenn,
Please take a look and let us know your thoughts.

Glenn can have a look, but I think we are good to remove them now, they have been deprecated for more than 1 year, enough time for any reaction ;) Otherwise that'd defeat the point of deprecating and the pain for us to schedule and wait for months.

Quoted 7 lines

Philippe,

Sorry, I thought it had been made clear back in August of last year that we would need the PPC405 CPU to hang around.  The topic was brought up by Cedric when I added support for the PPE42 processor.  Is there some formal process I need to go through to have it removed from the deprecated list?

Quoted 4 lines

I don't know of any un-deprecation process. I suggest sending a patch to revert commit 52f0b59ec6b7 ("hw/ppc: Deprecate 405 CPUs"). The commit log should mention the PPE42 processor which is a stripped down version of the IBM PowerPC 405 processor.

That, and updating MAINTAINERS for these CPUs (likely adding a new entry including at least Glenn).

Quoted 7 lines

Thanks,

C.

https://lore.kernel.org/all/[email protected]/

#16 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

Ok, thanks. I'll go forward with these suggestions.

Glenn

Quoted 43 lines · Philippe Mathieu-Daudé

Cc'ing Daniel and Thomas, our deprecation experts.

Quoted 26 lines · Cédric Le Goater

Hello Glenn,

Quoted 14 lines · Miles Glenn
Quoted 5 lines · Philippe Mathieu-Daudé

Hi Harsh,

Quoted 2 lines · Harsh Prateek Bora

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Quoted 7 lines
Quoted 2 lines

Glenn,
Please take a look and let us know your thoughts.

Glenn can have a look, but I think we are good to remove them now, they have been deprecated for more than 1 year, enough time for any reaction ;) Otherwise that'd defeat the point of deprecating and the pain for us to schedule and wait for months.

Quoted 7 lines

Philippe,

Sorry, I thought it had been made clear back in August of last year that we would need the PPC405 CPU to hang around. The topic was brought up by Cedric when I added support for the PPE42 processor. Is there some formal process I need to go through to have it removed from the deprecated list?

Quoted 4 lines

I don't know of any un-deprecation process. I suggest sending a patch to revert commit 52f0b59ec6b7 ("hw/ppc: Deprecate 405 CPUs"). The commit log should mention the PPE42 processor which is a stripped down version of the IBM PowerPC 405 processor.

That, and updating MAINTAINERS for these CPUs (likely adding a new entry including at least Glenn).

Quoted 6 lines

Thanks,

C.

https://lore.kernel.org/all/[email protected]/

#17 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

Philippe,

Regarding the MAINTAINERS file, do we really need a new entry in there? We already have an entry for the PPE42 CPU with myself as maintainer and I believe the rest is covered by the "PowerPC TCG CPUs" entry. Were there any files in particular that you had in mind?

Thanks,

Glenn

Quoted 48 lines · Miles Glenn

Ok, thanks. I'll go forward with these suggestions.

Glenn

Quoted 43 lines · Philippe Mathieu-Daudé

Cc'ing Daniel and Thomas, our deprecation experts.

Quoted 26 lines · Cédric Le Goater

Hello Glenn,

Quoted 14 lines · Miles Glenn
Quoted 5 lines · Philippe Mathieu-Daudé

Hi Harsh,

Quoted 2 lines · Harsh Prateek Bora

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Quoted 7 lines
Quoted 2 lines

Glenn,
Please take a look and let us know your thoughts.

Glenn can have a look, but I think we are good to remove them now, they have been deprecated for more than 1 year, enough time for any reaction ;) Otherwise that'd defeat the point of deprecating and the pain for us to schedule and wait for months.

Quoted 7 lines

Philippe,

Sorry, I thought it had been made clear back in August of last year that we would need the PPC405 CPU to hang around. The topic was brought up by Cedric when I added support for the PPE42 processor. Is there some formal process I need to go through to have it removed from the deprecated list?

Quoted 4 lines

I don't know of any un-deprecation process. I suggest sending a patch to revert commit 52f0b59ec6b7 ("hw/ppc: Deprecate 405 CPUs"). The commit log should mention the PPE42 processor which is a stripped down version of the IBM PowerPC 405 processor.

That, and updating MAINTAINERS for these CPUs (likely adding a new entry including at least Glenn).

Quoted 6 lines

Thanks,

C.

https://lore.kernel.org/all/[email protected]/

#18 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

In reply to Cédric Le Goater
Quoted 26 lines · Cédric Le Goater

Hello Glenn,

Quoted 14 lines · Miles Glenn
Quoted 5 lines · Philippe Mathieu-Daudé

Hi Harsh,

Quoted 2 lines · Harsh Prateek Bora

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Quoted 7 lines
Quoted 2 lines

Glenn,
Please take a look and let us know your thoughts.

Glenn can have a look, but I think we are good to remove them now, they have been deprecated for more than 1 year, enough time for any reaction ;) Otherwise that'd defeat the point of deprecating and the pain for us to schedule and wait for months.

Quoted 7 lines

Philippe,

Sorry, I thought it had been made clear back in August of last year that we would need the PPC405 CPU to hang around. The topic was brought up by Cedric when I added support for the PPE42 processor. Is there some formal process I need to go through to have it removed from the deprecated list?

Quoted 4 lines

I don't know of any un-deprecation process. I suggest sending a patch to revert commit 52f0b59ec6b7 ("hw/ppc: Deprecate 405 CPUs"). The commit log should mention the PPE42 processor which is a stripped down version of the IBM PowerPC 405 processor.

Yes, that's exactly the process - just remove the text from deprecated.rst and warning messages printed by the code (if any)

Daniel

#19 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

In reply to Harsh Prateek Bora

Please do not remove the PowerPC 405 CPU. We are currently using the PPE42 CPU which is heavily based on the PowerPC 405 and we will be using the PowerPC 405 CPU in the near future (probably within a year). I do not have a problem with the removal of any boards as long as we keep at least one for regression testing of the PPC405 CPU.

Thank you,

Glenn Miles

Quoted 68 lines · Harsh Prateek Bora

Adding Glenn (since PPE42 seems to make use of CONFIG_PPC405)

Glenn,
Please take a look and let us know your thoughts.

regards,
Harsh

Quoted 57 lines · Philippe Mathieu-Daudé
Quoted 45 lines · Cédric Le Goater
Quoted 44 lines · Nicholas Piggin
Quoted 32 lines · Richard Henderson
Quoted 4 lines · Philippe Mathieu-Daudé

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.

...

Quoted 17 lines

The deprecation message (see previous patch) was about the "ppc ``ref405ep`` machine". Is that OK we remove these CPUs for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2            PVR 20010000
PowerPC 405gpa           PVR 40110000
PowerPC 405gpb           PVR 40110040
PowerPC 405cra           PVR 40110041
PowerPC 405gpc           PVR 40110082
PowerPC 405gpd           PVR 401100c4
PowerPC 405gp            (alias for 405gpd)
PowerPC 405crb           PVR 401100c5
PowerPC 405crc           PVR 40110145
PowerPC 405cr            (alias for 405crc)
PowerPC 405gpe           (alias for 405crc)
PowerPC npe405h          PVR 414100c0
Quoted 8 lines
PowerPC npe405h2         PVR 41410140
PowerPC 405ez            PVR 41511460
PowerPC npe405l          PVR 416100c0
PowerPC 405d4            PVR 41810000
PowerPC 405              (alias for 405d4)
PowerPC 405lp            PVR 41f10000
PowerPC 405gpr           PVR 50910951
PowerPC 405ep            PVR 51210950
Quoted 3 lines

Up to the ppc maintainers. I don't know of anything interesting at the user-only level
wrt these cpus.

Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER chips. There is an OCC power management controller which is a 405 and some other weird cut down 405 derivatives, we're not up to those yet but we want to model them.

Quoted 8 lines
Quoted 4 lines

We should be able to remove a bunch of boards and CPUs, I just haven't started looking, so might be easier to wait for a bit. If it's not causing others too much problem, could we leave this in for the time being?

Sure. We will need a new SoC for the OCC and a firmware image. I think these can be built from https://github.com/open-power/occ or, if not, they should be made available.

Should we proceed with this removal now than v11.0.0 is released?

#20 lore raw

Re: [PATCH 3/9] ppc/ppc405: Remove CPU

In reply to Nicholas Piggin
Quoted 43 lines · Nicholas Piggin
Quoted 32 lines · Richard Henderson
Quoted 4 lines · Philippe Mathieu-Daudé

Hi Cédric,

Cc'ing Laurent & Richard for user emulation.

...

Quoted 17 lines

The deprecation message (see previous patch) was about the "ppc ``ref405ep`` machine". Is that OK we remove these CPUs for user emulation?

$ qemu-ppc -cpu help|fgrep 405
PowerPC 405d2            PVR 20010000
PowerPC 405gpa           PVR 40110000
PowerPC 405gpb           PVR 40110040
PowerPC 405cra           PVR 40110041
PowerPC 405gpc           PVR 40110082
PowerPC 405gpd           PVR 401100c4
PowerPC 405gp            (alias for 405gpd)
PowerPC 405crb           PVR 401100c5
PowerPC 405crc           PVR 40110145
PowerPC 405cr            (alias for 405crc)
PowerPC 405gpe           (alias for 405crc)
PowerPC npe405h          PVR 414100c0
Quoted 8 lines
PowerPC npe405h2         PVR 41410140
PowerPC 405ez            PVR 41511460
PowerPC npe405l          PVR 416100c0
PowerPC 405d4            PVR 41810000
PowerPC 405              (alias for 405d4)
PowerPC 405lp            PVR 41f10000
PowerPC 405gpr           PVR 50910951
PowerPC 405ep            PVR 51210950
Quoted 2 lines

Up to the ppc maintainers. I don't know of anything interesting at the user-only level wrt these cpus.

Just getting back to things after the break...

We are looking at modeling some microcontrollers on the POWER chips. There is an OCC power management controller which is a 405 and some other weird cut down 405 derivatives, we're not up to those yet but we want to model them.

Quoted 4 lines

We should be able to remove a bunch of boards and CPUs, I just haven't started looking, so might be easier to wait for a bit. If it's not causing others too much problem, could we leave this in for the time being?

That's fine, but then we need to at least mark you as a maintainer here:

PowerPC Machines
----------------
405 (ref405ep)
L: [email protected]
S: Orphan <----------------
F: hw/ppc/ppc405*
F: tests/functional/test_ppc_405.py

Either with "S: Odd Fixes" or "S: Maintained" (or S: Supported, if that's really the case). And perhaps re-visit the deprecation notice too.

I'm being petty here because, right now, all 405 code is marked for deprecation, has no firmware images and Linux support and etc like Cedric mentioned, and it fits exactly the criteria everyone else uses for removal. If we want to keep it around we'll need at least MAINTAINER changes to indicate it.

Thanks,

Daniel

Quoted 3 lines

Thanks,
Nick

#21 lore raw

PATCH 4/9 ppc/ppc405: Remove storage control (SLER) SPR

In reply to Cédric Le Goater

Since the 405 CPU family was phased out, the SLER SPR has no users anymore.

---
 target/ppc/cpu.h         |  2 --
 target/ppc/helper.h      |  1 -
 target/ppc/spr_common.h  |  1 -
 target/ppc/helper_regs.c | 10 ----------
 target/ppc/misc_helper.c |  5 -----
 target/ppc/translate.c   |  6 ------
 6 files changed, 25 deletions(-)
target/ppc/cpu.h +0 -2
index 0fe44cedb1b3..2f3741860076 100644
@@ -1620,7 +1620,6 @@ void cpu_ppc_store_purr(CPUPPCState *env, uint64_t value);
 target_ulong load_40x_pit(CPUPPCState *env);
 void store_40x_pit(CPUPPCState *env, target_ulong val);
 void store_40x_dbcr0(CPUPPCState *env, uint32_t val);
-void store_40x_sler(CPUPPCState *env, uint32_t val);
 void store_40x_tcr(CPUPPCState *env, target_ulong val);
 void store_40x_tsr(CPUPPCState *env, target_ulong val);
 void store_booke_tcr(CPUPPCState *env, target_ulong val);
@@ -2172,7 +2171,6 @@ void ppc_compat_add_property(Object *obj, const char *name,
 #define SPR_7XX_PMC1          (0x3B9)
 #define SPR_7XX_PMC2          (0x3BA)
 #define SPR_7XX_SIAR          (0x3BB)
-#define SPR_405_SLER          (0x3BB)
 #define SPR_7XX_MMCR1         (0x3BC)
 #define SPR_405_SU0R          (0x3BC)
 #define SPR_401_SKR           (0x3BC)
target/ppc/helper.h +0 -1
index 5a77e761bd3f..86f3bbc087f6 100644
@@ -753,7 +753,6 @@ DEF_HELPER_FLAGS_2(store_40x_tcr, TCG_CALL_NO_RWG, void, env, tl)
 DEF_HELPER_FLAGS_2(store_40x_tsr, TCG_CALL_NO_RWG, void, env, tl)
 DEF_HELPER_2(store_40x_pid, void, env, tl)
 DEF_HELPER_2(store_40x_dbcr0, void, env, tl)
-DEF_HELPER_2(store_40x_sler, void, env, tl)
 DEF_HELPER_FLAGS_2(store_booke_tcr, TCG_CALL_NO_RWG, void, env, tl)
 DEF_HELPER_FLAGS_2(store_booke_tsr, TCG_CALL_NO_RWG, void, env, tl)
 DEF_HELPER_3(store_ibatl, void, env, i32, tl)
target/ppc/spr_common.h +0 -1
index 01aff449bccc..e98fb07bb285 100644
@@ -138,7 +138,6 @@ void spr_write_sdr1(DisasContext *ctx, int sprn, int gprn);
 void spr_read_40x_pit(DisasContext *ctx, int gprn, int sprn);
 void spr_write_40x_pit(DisasContext *ctx, int sprn, int gprn);
 void spr_write_40x_dbcr0(DisasContext *ctx, int sprn, int gprn);
-void spr_write_40x_sler(DisasContext *ctx, int sprn, int gprn);
 void spr_write_40x_tcr(DisasContext *ctx, int sprn, int gprn);
 void spr_write_40x_tsr(DisasContext *ctx, int sprn, int gprn);
 void spr_write_40x_pid(DisasContext *ctx, int sprn, int gprn);
target/ppc/helper_regs.c +0 -10
index 3ad4273c1649..1e5ba9a1c64b 100644
@@ -354,16 +354,6 @@ int hreg_store_msr(CPUPPCState *env, target_ulong value, int alter_hv)
 }
 
 #ifndef CONFIG_USER_ONLY
-void store_40x_sler(CPUPPCState *env, uint32_t val)
-{
-    /* XXX: TO BE FIXED */
-    if (val != 0x00000000) {
-        cpu_abort(env_cpu(env),
-                  "Little-endian regions are not supported by now\n");
-    }
-    env->spr[SPR_405_SLER] = val;
-}
-
 void check_tlb_flush(CPUPPCState *env, bool global)
 {
     CPUState *cs = env_cpu(env);
target/ppc/misc_helper.c +0 -5
index f0ca80153b2b..78bb29d441a7 100644
@@ -404,11 +404,6 @@ void helper_store_40x_dbcr0(CPUPPCState *env, target_ulong val)
     /* Bits 28 & 29 affect reset or shutdown. */
     store_40x_dbcr0(env, val);
 }
-
-void helper_store_40x_sler(CPUPPCState *env, target_ulong val)
-{
-    store_40x_sler(env, val);
-}
 #endif
 
 /*****************************************************************************/
target/ppc/translate.c +0 -6
index 80638ab53597..918bf8f3a0cc 100644
@@ -967,12 +967,6 @@ void spr_write_40x_dbcr0(DisasContext *ctx, int sprn, int gprn)
     ctx->base.is_jmp = DISAS_EXIT_UPDATE;
 }
 
-void spr_write_40x_sler(DisasContext *ctx, int sprn, int gprn)
-{
-    translator_io_start(&ctx->base);
-    gen_helper_store_40x_sler(tcg_env, cpu_gpr[gprn]);
-}
-
 void spr_write_40x_tcr(DisasContext *ctx, int sprn, int gprn)
 {
     translator_io_start(&ctx->base);
Signature · 1 line
2.47.1
#22 lore raw

PATCH 5/9 ppc/ppc405: Remove 40x exception model

In reply to Cédric Le Goater

This exception model was only used by the 405 CPU family which was removed. The rest of the PPC 4xx CPUs use the BookE exception model.

---
 target/ppc/cpu.h         |   8 +--
 target/ppc/helper.h      |   1 -
 target/ppc/cpu_init.c    |  11 ----
 target/ppc/excp_helper.c | 116 ---------------------------------------
 target/ppc/translate.c   |  14 -----
 5 files changed, 1 insertion(+), 149 deletions(-)
target/ppc/cpu.h +1 -7
index 2f3741860076..32423cfb7368 100644
@@ -196,8 +196,6 @@ typedef enum powerpc_excp_t {
     POWERPC_EXCP_UNKNOWN   = 0,
     /* Standard PowerPC exception model */
     POWERPC_EXCP_STD,
-    /* PowerPC 40x exception model      */
-    POWERPC_EXCP_40x,
     /* PowerPC 603/604/G2 exception model */
     POWERPC_EXCP_6xx,
     /* PowerPC 7xx exception model      */
@@ -2206,9 +2204,7 @@ void ppc_compat_add_property(Object *obj, const char *name,
 #define SPR_403_TBL           (0x3DC)
 #define SPR_403_TBU           (0x3DD)
 #define SPR_SEBR              (0x3DE)
-#define SPR_40x_SRR2          (0x3DE)
 #define SPR_SER               (0x3DF)
-#define SPR_40x_SRR3          (0x3DF)
 #define SPR_L3OHCR            (0x3E8)
 #define SPR_L3ITCR1           (0x3E9)
 #define SPR_L3ITCR2           (0x3EA)
@@ -2405,8 +2401,6 @@ enum {
 
     /* Embedded PowerPC dedicated instructions                               */
     PPC_WRTEE          = 0x0001000000000000ULL,
-    /* PowerPC 40x exception model                                           */
-    PPC_40x_EXCP       = 0x0002000000000000ULL,
     /* PowerPC 405 Mac instructions                                          */
     PPC_405_MAC        = 0x0004000000000000ULL,
     /* PowerPC 440 specific instructions                                     */
@@ -2450,7 +2444,7 @@ enum {
                         | PPC_CACHE_DCBA | PPC_CACHE_LOCK \
                         | PPC_EXTERN | PPC_SEGMENT | PPC_6xx_TLB \
                         | PPC_40x_TLB | PPC_SEGMENT_64B \
-                        | PPC_SLBI | PPC_WRTEE | PPC_40x_EXCP \
+                        | PPC_SLBI | PPC_WRTEE \
                         | PPC_405_MAC | PPC_440_SPEC | PPC_BOOKE \
                         | PPC_MFAPIDI | PPC_TLBIVA | PPC_TLBIVAX \
                         | PPC_4xx_COMMON | PPC_40x_ICBT | PPC_RFMCI \
target/ppc/helper.h +0 -1
index 86f3bbc087f6..8272ceb5d7b1 100644
@@ -12,7 +12,6 @@ DEF_HELPER_4(HASHCHKP, void, env, tl, tl, tl)
 DEF_HELPER_2(store_msr, void, env, tl)
 DEF_HELPER_1(ppc_maybe_interrupt, void, env)
 DEF_HELPER_1(rfi, void, env)
-DEF_HELPER_1(40x_rfci, void, env)
 DEF_HELPER_1(rfci, void, env)
 DEF_HELPER_1(rfdi, void, env)
 DEF_HELPER_1(rfmci, void, env)
target/ppc/cpu_init.c +0 -11
index da92dce54624..14573d1d8b92 100644
@@ -7420,17 +7420,6 @@ void ppc_cpu_dump_state(CPUState *cs, FILE *f, int flags)
          * they can be read with "p $ivor0", "p $ivor1", etc.
          */
         break;
-    case POWERPC_EXCP_40x:
-        qemu_fprintf(f, "  TCR " TARGET_FMT_lx "   TSR " TARGET_FMT_lx
-                     "    ESR " TARGET_FMT_lx "   DEAR " TARGET_FMT_lx "\n",
-                     env->spr[SPR_40x_TCR], env->spr[SPR_40x_TSR],
-                     env->spr[SPR_40x_ESR], env->spr[SPR_40x_DEAR]);
-
-        qemu_fprintf(f, " EVPR " TARGET_FMT_lx "  SRR2 " TARGET_FMT_lx
-                     "   SRR3 " TARGET_FMT_lx  "   PID " TARGET_FMT_lx "\n",
-                     env->spr[SPR_40x_EVPR], env->spr[SPR_40x_SRR2],
-                     env->spr[SPR_40x_SRR3], env->spr[SPR_40x_PID]);
-        break;
     default:
         break;
     }
target/ppc/excp_helper.c +0 -116

134 lines not on this page · raw message

target/ppc/translate.c +0 -14
index 918bf8f3a0cc..0f19949897f4 100644
@@ -5090,19 +5090,6 @@ static void gen_icread(DisasContext *ctx)
     /* interpreted as no-op */
 }
 
-/* rfci (supervisor only) */
-static void gen_rfci_40x(DisasContext *ctx)
-{
-#if defined(CONFIG_USER_ONLY)
-    GEN_PRIV(ctx);
-#else
-    CHK_SV(ctx);
-    /* Restore CPU state */
-    gen_helper_40x_rfci(tcg_env);
-    ctx->base.is_jmp = DISAS_EXIT;
-#endif /* defined(CONFIG_USER_ONLY) */
-}
-
 static void gen_rfci(DisasContext *ctx)
 {
 #if defined(CONFIG_USER_ONLY)
@@ -5924,7 +5911,6 @@ GEN_HANDLER(dcread, 0x1F, 0x06, 0x0F, 0x00000001, PPC_4xx_COMMON),
 GEN_HANDLER2(icbt_40x, "icbt", 0x1F, 0x06, 0x08, 0x03E00001, PPC_40x_ICBT),
 GEN_HANDLER(iccci, 0x1F, 0x06, 0x1E, 0x00000001, PPC_4xx_COMMON),
 GEN_HANDLER(icread, 0x1F, 0x06, 0x1F, 0x03E00001, PPC_4xx_COMMON),
-GEN_HANDLER2(rfci_40x, "rfci", 0x13, 0x13, 0x01, 0x03FF8001, PPC_40x_EXCP),
 GEN_HANDLER_E(rfci, 0x13, 0x13, 0x01, 0x03FF8001, PPC_BOOKE, PPC2_BOOKE206),
 GEN_HANDLER(rfdi, 0x13, 0x07, 0x01, 0x03FF8001, PPC_RFDI),
 GEN_HANDLER(rfmci, 0x13, 0x06, 0x01, 0x03FF8001, PPC_RFMCI),
Signature · 1 line
2.47.1
#23 lore raw

PATCH 6/9 ppc/ppc405: Remove timer support

In reply to Cédric Le Goater

Since the 405 CPU family was phased out, these timer models have no users anymore.

---
 include/hw/ppc/ppc.h         |  15 ---
 target/ppc/cpu.h             |   7 -
 target/ppc/helper.h          |   4 -
 target/ppc/spr_common.h      |   4 -
 hw/ppc/ppc.c                 | 251 -----------------------------------
 target/ppc/timebase_helper.c |  20 ---
 target/ppc/translate.c       |  24 ----
 hw/ppc/trace-events          |   5 -
 8 files changed, 330 deletions(-)
include/hw/ppc/ppc.h +0 -15
index 8a14d623f8ca..18b0492dd198 100644
@@ -8,19 +8,6 @@ PowerPCCPU *ppc_get_vcpu_by_pir(int pir);
 int ppc_cpu_pir(PowerPCCPU *cpu);
 int ppc_cpu_tir(PowerPCCPU *cpu);
 
-/* PowerPC hardware exceptions management helpers */
-typedef void (*clk_setup_cb)(void *opaque, uint32_t freq);
-typedef struct clk_setup_t clk_setup_t;
-struct clk_setup_t {
-    clk_setup_cb cb;
-    void *opaque;
-};
-static inline void clk_setup (clk_setup_t *clk, uint32_t freq)
-{
-    if (clk->cb != NULL)
-        (*clk->cb)(clk->opaque, freq);
-}
-
 struct ppc_tb_t {
     /* Time base management */
     int64_t  tb_offset;    /* Compensation                    */
@@ -67,8 +54,6 @@ int ppc_dcr_init (CPUPPCState *env, int (*dcr_read_error)(int dcrn),
                   int (*dcr_write_error)(int dcrn));
 int ppc_dcr_register (CPUPPCState *env, int dcrn, void *opaque,
                       dcr_read_cb drc_read, dcr_write_cb dcr_write);
-clk_setup_cb ppc_40x_timers_init (CPUPPCState *env, uint32_t freq,
-                                  unsigned int decr_excp);
 
 /* Embedded PowerPC reset */
 void ppc40x_core_reset(PowerPCCPU *cpu);
target/ppc/cpu.h +0 -7
index 32423cfb7368..504924f10561 100644
@@ -1615,11 +1615,7 @@ void cpu_ppc_store_tbu40(CPUPPCState *env, uint64_t value);
 uint64_t cpu_ppc_load_purr(CPUPPCState *env);
 void cpu_ppc_store_purr(CPUPPCState *env, uint64_t value);
 #if !defined(CONFIG_USER_ONLY)
-target_ulong load_40x_pit(CPUPPCState *env);
-void store_40x_pit(CPUPPCState *env, target_ulong val);
 void store_40x_dbcr0(CPUPPCState *env, uint32_t val);
-void store_40x_tcr(CPUPPCState *env, target_ulong val);
-void store_40x_tsr(CPUPPCState *env, target_ulong val);
 void store_booke_tcr(CPUPPCState *env, target_ulong val);
 void store_booke_tsr(CPUPPCState *env, target_ulong val);
 void ppc_tlb_invalidate_all(CPUPPCState *env);
@@ -2196,11 +2192,8 @@ void ppc_compat_add_property(Object *obj, const char *name,
 #define SPR_403_CDBCR         (0x3D7)
 #define SPR_L3ITCR0           (0x3D8)
 #define SPR_TCR               (0x3D8)
-#define SPR_40x_TSR           (0x3D8)
 #define SPR_IBR               (0x3DA)
-#define SPR_40x_TCR           (0x3DA)
 #define SPR_ESASRR            (0x3DB)
-#define SPR_40x_PIT           (0x3DB)
 #define SPR_403_TBL           (0x3DC)
 #define SPR_403_TBU           (0x3DD)
 #define SPR_SEBR              (0x3DE)
target/ppc/helper.h +0 -4
index 8272ceb5d7b1..025f2b5ac902 100644
@@ -746,10 +746,6 @@ DEF_HELPER_FLAGS_1(load_hdecr, TCG_CALL_NO_RWG, tl, env)
 DEF_HELPER_FLAGS_2(store_hdecr, TCG_CALL_NO_RWG, void, env, tl)
 DEF_HELPER_FLAGS_2(store_vtb, TCG_CALL_NO_RWG, void, env, tl)
 DEF_HELPER_FLAGS_2(store_tbu40, TCG_CALL_NO_RWG, void, env, tl)
-DEF_HELPER_FLAGS_1(load_40x_pit, TCG_CALL_NO_RWG, tl, env)
-DEF_HELPER_FLAGS_2(store_40x_pit, TCG_CALL_NO_RWG, void, env, tl)
-DEF_HELPER_FLAGS_2(store_40x_tcr, TCG_CALL_NO_RWG, void, env, tl)
-DEF_HELPER_FLAGS_2(store_40x_tsr, TCG_CALL_NO_RWG, void, env, tl)
 DEF_HELPER_2(store_40x_pid, void, env, tl)
 DEF_HELPER_2(store_40x_dbcr0, void, env, tl)
 DEF_HELPER_FLAGS_2(store_booke_tcr, TCG_CALL_NO_RWG, void, env, tl)
target/ppc/spr_common.h +0 -4
index e98fb07bb285..4aab0e5f8291 100644
@@ -135,11 +135,7 @@ void spr_write_dbatu_h(DisasContext *ctx, int sprn, int gprn);
 void spr_write_dbatl(DisasContext *ctx, int sprn, int gprn);
 void spr_write_dbatl_h(DisasContext *ctx, int sprn, int gprn);
 void spr_write_sdr1(DisasContext *ctx, int sprn, int gprn);
-void spr_read_40x_pit(DisasContext *ctx, int gprn, int sprn);
-void spr_write_40x_pit(DisasContext *ctx, int sprn, int gprn);
 void spr_write_40x_dbcr0(DisasContext *ctx, int sprn, int gprn);
-void spr_write_40x_tcr(DisasContext *ctx, int sprn, int gprn);
-void spr_write_40x_tsr(DisasContext *ctx, int sprn, int gprn);
 void spr_write_40x_pid(DisasContext *ctx, int sprn, int gprn);
 void spr_write_booke_tcr(DisasContext *ctx, int sprn, int gprn);
 void spr_write_booke_tsr(DisasContext *ctx, int sprn, int gprn);
hw/ppc/ppc.c +0 -251

257 lines not on this page · raw message

target/ppc/timebase_helper.c +0 -20
index 73120323b4e6..1eee0a6918d3 100644
@@ -181,26 +181,6 @@ void helper_store_tbu40(CPUPPCState *env, target_ulong val)
     }
 }
 
-target_ulong helper_load_40x_pit(CPUPPCState *env)
-{
-    return load_40x_pit(env);
-}
-
-void helper_store_40x_pit(CPUPPCState *env, target_ulong val)
-{
-    store_40x_pit(env, val);
-}
-
-void helper_store_40x_tcr(CPUPPCState *env, target_ulong val)
-{
-    store_40x_tcr(env, val);
-}
-
-void helper_store_40x_tsr(CPUPPCState *env, target_ulong val)
-{
-    store_40x_tsr(env, val);
-}
-
 void helper_store_booke_tcr(CPUPPCState *env, target_ulong val)
 {
     store_booke_tcr(env, val);
target/ppc/translate.c +0 -24
index 0f19949897f4..ea5eff7cf0f8 100644
@@ -946,18 +946,6 @@ void spr_write_dpdes(DisasContext *ctx, int sprn, int gprn)
 
 /* PowerPC 40x specific registers */
 #if !defined(CONFIG_USER_ONLY)
-void spr_read_40x_pit(DisasContext *ctx, int gprn, int sprn)
-{
-    translator_io_start(&ctx->base);
-    gen_helper_load_40x_pit(cpu_gpr[gprn], tcg_env);
-}
-
-void spr_write_40x_pit(DisasContext *ctx, int sprn, int gprn)
-{
-    translator_io_start(&ctx->base);
-    gen_helper_store_40x_pit(tcg_env, cpu_gpr[gprn]);
-}
-
 void spr_write_40x_dbcr0(DisasContext *ctx, int sprn, int gprn)
 {
     translator_io_start(&ctx->base);
@@ -967,18 +955,6 @@ void spr_write_40x_dbcr0(DisasContext *ctx, int sprn, int gprn)
     ctx->base.is_jmp = DISAS_EXIT_UPDATE;
 }
 
-void spr_write_40x_tcr(DisasContext *ctx, int sprn, int gprn)
-{
-    translator_io_start(&ctx->base);
-    gen_helper_store_40x_tcr(tcg_env, cpu_gpr[gprn]);
-}
-
-void spr_write_40x_tsr(DisasContext *ctx, int sprn, int gprn)
-{
-    translator_io_start(&ctx->base);
-    gen_helper_store_40x_tsr(tcg_env, cpu_gpr[gprn]);
-}
-
 void spr_write_40x_pid(DisasContext *ctx, int sprn, int gprn)
 {
     TCGv t0 = tcg_temp_new();
hw/ppc/trace-events +0 -5
index 1f125ce84193..d00a81666c82 100644
@@ -123,16 +123,11 @@ ppc_decr_load(uint64_t tb) "decr 0x%016" PRIx64
 ppc_decr_excp(const char *action) "%s decrementer"
 ppc_decr_store(uint32_t nr_bits, uint64_t decr, uint64_t value) "%d-bit 0x%016" PRIx64 " => 0x%016" PRIx64
 
-ppc4xx_fit(uint32_t ir, uint64_t tcr, uint64_t tsr) "ir %d TCR 0x%" PRIx64 " TSR 0x%" PRIx64
 ppc4xx_pit_stop(void) ""
 ppc4xx_pit_start(uint64_t reload) "PIT 0x%016" PRIx64
-ppc4xx_pit(uint32_t ar, uint32_t ir, uint64_t tcr, uint64_t tsr, uint64_t reload) "ar %d ir %d TCR 0x%" PRIx64 " TSR 0x%" PRIx64 " PIT 0x%016" PRIx64
 ppc4xx_wdt(uint64_t tcr, uint64_t tsr) "TCR 0x%" PRIx64 " TSR 0x%" PRIx64
-ppc40x_store_pit(uint64_t value) "val 0x%" PRIx64
 ppc40x_store_tcr(uint64_t value) "val 0x%" PRIx64
 ppc40x_store_tsr(uint64_t value) "val 0x%" PRIx64
-ppc40x_set_tb_clk(uint32_t value) "new frequency %" PRIu32
-ppc40x_timers_init(uint32_t value) "frequency %" PRIu32
 
 ppc_irq_set(void *env, uint32_t pin, uint32_t level) "env [%p] pin %d level %d"
 ppc_irq_set_exit(void *env, uint32_t irq, uint32_t level, uint32_t pending, uint32_t request) "env [%p] irq 0x%05" PRIx32 " level %d => pending 0x%08" PRIx32 " req 0x%08" PRIx32
Signature · 1 line
2.47.1
#24 lore raw

PATCH 7/9 ppc/ppc405: Remove cache handling instructions

In reply to Cédric Le Goater

Since the 405 CPU family was phased out, these instructions have no users anymore.

---
 target/ppc/cpu.h       |  6 +-----
 target/ppc/translate.c | 11 -----------
 2 files changed, 1 insertion(+), 16 deletions(-)
target/ppc/cpu.h +1 -5
index 504924f10561..f83f01a62a12 100644
@@ -2234,9 +2234,7 @@ void ppc_compat_add_property(Object *obj, const char *name,
 #define SPR_L3CR              (0x3FA)
 #define SPR_750_TDCH          (0x3FA)
 #define SPR_IABR2             (0x3FA)
-#define SPR_40x_DCCR          (0x3FA)
 #define SPR_ICTC              (0x3FB)
-#define SPR_40x_ICCR          (0x3FB)
 #define SPR_THRM1             (0x3FC)
 #define SPR_403_PBL1          (0x3FC)
 #define SPR_SP                (0x3FD)
@@ -2408,8 +2406,6 @@ enum {
     PPC_TLBIVAX        = 0x0080000000000000ULL,
     /* PowerPC 4xx dedicated instructions                                    */
     PPC_4xx_COMMON     = 0x0100000000000000ULL,
-    /* PowerPC 40x ibct instructions                                         */
-    PPC_40x_ICBT       = 0x0200000000000000ULL,
     /* rfmci is not implemented in all BookE PowerPC                         */
     PPC_RFMCI          = 0x0400000000000000ULL,
     /* rfdi instruction                                                      */
@@ -2440,7 +2436,7 @@ enum {
                         | PPC_SLBI | PPC_WRTEE \
                         | PPC_405_MAC | PPC_440_SPEC | PPC_BOOKE \
                         | PPC_MFAPIDI | PPC_TLBIVA | PPC_TLBIVAX \
-                        | PPC_4xx_COMMON | PPC_40x_ICBT | PPC_RFMCI \
+                        | PPC_4xx_COMMON | PPC_RFMCI \
                         | PPC_RFDI | PPC_DCR | PPC_DCRX | PPC_POPCNTWD \
                         | PPC_CILDST)
 
target/ppc/translate.c +0 -11
index ea5eff7cf0f8..779103c0472d 100644
@@ -5042,16 +5042,6 @@ static void gen_dcread(DisasContext *ctx)
 #endif /* defined(CONFIG_USER_ONLY) */
 }
 
-/* icbt */
-static void gen_icbt_40x(DisasContext *ctx)
-{
-    /*
-     * interpreted as no-op
-     * XXX: specification say this is treated as a load by the MMU but
-     *      does not generate any exception
-     */
-}
-
 /* iccci */
 static void gen_iccci(DisasContext *ctx)
 {
@@ -5884,7 +5874,6 @@ GEN_HANDLER(mfdcrx, 0x1F, 0x03, 0x08, 0x00000000, PPC_DCRX),
 GEN_HANDLER(mtdcrx, 0x1F, 0x03, 0x0C, 0x00000000, PPC_DCRX),
 GEN_HANDLER(dccci, 0x1F, 0x06, 0x0E, 0x03E00001, PPC_4xx_COMMON),
 GEN_HANDLER(dcread, 0x1F, 0x06, 0x0F, 0x00000001, PPC_4xx_COMMON),
-GEN_HANDLER2(icbt_40x, "icbt", 0x1F, 0x06, 0x08, 0x03E00001, PPC_40x_ICBT),
 GEN_HANDLER(iccci, 0x1F, 0x06, 0x1E, 0x00000001, PPC_4xx_COMMON),
 GEN_HANDLER(icread, 0x1F, 0x06, 0x1F, 0x03E00001, PPC_4xx_COMMON),
 GEN_HANDLER_E(rfci, 0x13, 0x13, 0x01, 0x03FF8001, PPC_BOOKE, PPC2_BOOKE206),
Signature · 1 line
2.47.1
#25 lore raw

Re: [PATCH 7/9] ppc/ppc405: Remove cache handling instructions

Quoted 14 lines · Cédric Le Goater

Since the 405 CPU family was phased out, these instructions have no users anymore.

---
  target/ppc/cpu.h       |  6 +-----
  target/ppc/translate.c | 11 -----------
  2 files changed, 1 insertion(+), 16 deletions(-)
target/ppc/cpu.h +0 -0
index 504924f10561..f83f01a62a12 100644

target/ppc/cpu.h void ppc_compat_add_property(Object *obj, const char *name, · line 2240

Quoted 9 lines
target/ppc/cpu.h +0 -2
@@ -2234,9 +2234,7 @@ void ppc_compat_add_property(Object *obj, const char *name,
  #define SPR_L3CR              (0x3FA)
  #define SPR_750_TDCH          (0x3FA)
  #define SPR_IABR2             (0x3FA)
-#define SPR_40x_DCCR          (0x3FA)
  #define SPR_ICTC              (0x3FB)
-#define SPR_40x_ICCR          (0x3FB)
  #define SPR_THRM1             (0x3FC)
  #define SPR_403_PBL1          (0x3FC)
  #define SPR_SP                (0x3FD)

Belong to patch #3?

#26 lore raw

Re: [PATCH 7/9] ppc/ppc405: Remove cache handling instructions

Quoted 10 lines · Philippe Mathieu-Daudé
Quoted 9 lines · Cédric Le Goater

Since the 405 CPU family was phased out, these instructions have no users anymore.

---
  target/ppc/cpu.h       |  6 +-----
  target/ppc/translate.c | 11 -----------

  2 files changed, 1 insertion(+), 16 deletions(-)
Quoted 17 lines
Quoted 5 lines
target/ppc/cpu.h +0 -0
index 504924f10561..f83f01a62a12 100644

target/ppc/cpu.h void ppc_compat_add_property(Object *obj, const char *name, · line 2240

Quoted 9 lines
target/ppc/cpu.h +0 -2
@@ -2234,9 +2234,7 @@ void ppc_compat_add_property(Object *obj, const char *name,
   #define SPR_L3CR              (0x3FA)
   #define SPR_750_TDCH          (0x3FA)
   #define SPR_IABR2             (0x3FA)
-#define SPR_40x_DCCR          (0x3FA)
   #define SPR_ICTC              (0x3FB)
-#define SPR_40x_ICCR          (0x3FB)
   #define SPR_THRM1             (0x3FC)
   #define SPR_403_PBL1          (0x3FC)
   #define SPR_SP                (0x3FD)

Belong to patch #3?

It could. These are the Data and Instruction Cache Cachability Register, so they could stay in this patch too.

Thanks,

C.

#27 lore raw

PATCH 8/9 ppc/ppc405: Remove TLB instructions

In reply to Cédric Le Goater

Since the 405 CPU family was phased out, these instructions have no users anymore.

---
 target/ppc/cpu.h        |  4 +-
 target/ppc/helper.h     |  1 -
 target/ppc/spr_common.h |  1 -
 target/ppc/mmu_helper.c |  2 +-
 target/ppc/translate.c  | 81 -----------------------------------------
 5 files changed, 2 insertions(+), 87 deletions(-)
target/ppc/cpu.h +1 -3
index f83f01a62a12..6850d67b6875 100644
@@ -2383,8 +2383,6 @@ enum {
     PPC_SEGMENT        = 0x0000020000000000ULL,
     /*   PowerPC 6xx TLB management instructions                             */
     PPC_6xx_TLB        = 0x0000040000000000ULL,
-    /*   PowerPC 40x TLB management instructions                             */
-    PPC_40x_TLB        = 0x0000100000000000ULL,
     /*   segment register access instructions for PowerPC 64 "bridge"        */
     PPC_SEGMENT_64B    = 0x0000200000000000ULL,
     /*   SLB management                                                      */
@@ -2432,7 +2430,7 @@ enum {
                         | PPC_CACHE_DCBZ \
                         | PPC_CACHE_DCBA | PPC_CACHE_LOCK \
                         | PPC_EXTERN | PPC_SEGMENT | PPC_6xx_TLB \
-                        | PPC_40x_TLB | PPC_SEGMENT_64B \
+                        | PPC_SEGMENT_64B \
                         | PPC_SLBI | PPC_WRTEE \
                         | PPC_405_MAC | PPC_440_SPEC | PPC_BOOKE \
                         | PPC_MFAPIDI | PPC_TLBIVA | PPC_TLBIVAX \
target/ppc/helper.h +0 -1
index 025f2b5ac902..102f3e8aecf3 100644
@@ -746,7 +746,6 @@ DEF_HELPER_FLAGS_1(load_hdecr, TCG_CALL_NO_RWG, tl, env)
 DEF_HELPER_FLAGS_2(store_hdecr, TCG_CALL_NO_RWG, void, env, tl)
 DEF_HELPER_FLAGS_2(store_vtb, TCG_CALL_NO_RWG, void, env, tl)
 DEF_HELPER_FLAGS_2(store_tbu40, TCG_CALL_NO_RWG, void, env, tl)
-DEF_HELPER_2(store_40x_pid, void, env, tl)
 DEF_HELPER_2(store_40x_dbcr0, void, env, tl)
 DEF_HELPER_FLAGS_2(store_booke_tcr, TCG_CALL_NO_RWG, void, env, tl)
 DEF_HELPER_FLAGS_2(store_booke_tsr, TCG_CALL_NO_RWG, void, env, tl)
target/ppc/spr_common.h +0 -1
index 4aab0e5f8291..7535a016ee6b 100644
@@ -136,7 +136,6 @@ void spr_write_dbatl(DisasContext *ctx, int sprn, int gprn);
 void spr_write_dbatl_h(DisasContext *ctx, int sprn, int gprn);
 void spr_write_sdr1(DisasContext *ctx, int sprn, int gprn);
 void spr_write_40x_dbcr0(DisasContext *ctx, int sprn, int gprn);
-void spr_write_40x_pid(DisasContext *ctx, int sprn, int gprn);
 void spr_write_booke_tcr(DisasContext *ctx, int sprn, int gprn);
 void spr_write_booke_tsr(DisasContext *ctx, int sprn, int gprn);
 void spr_read_403_pbr(DisasContext *ctx, int gprn, int sprn);
target/ppc/mmu_helper.c +1 -1
index a802bc9c62b0..faa4522ec8b0 100644
@@ -673,7 +673,7 @@ static inline int booke_page_size_to_tlb(target_ulong page_size)
 #define PPC4XX_TLBLO_ATTR_MASK      0x000000FF
 #define PPC4XX_TLBLO_RPN_MASK       0xFFFFFC00
 
-void helper_store_40x_pid(CPUPPCState *env, target_ulong val)
+static void helper_store_40x_pid(CPUPPCState *env, target_ulong val)
 {
     if (env->spr[SPR_40x_PID] != val) {
         env->spr[SPR_40x_PID] = val;
target/ppc/translate.c +0 -81

99 lines not on this page · raw message

Signature · 1 line
2.47.1
#28 lore raw

PATCH 9/9 ppc/ppc405: Remove POWERPC_MMU_SOFT_4xx MMU model

In reply to Cédric Le Goater

Since the 405 CPU family was phased out, this MMU model has no users anymore.

---
 target/ppc/cpu.h         |  6 ----
 target/ppc/mmu-booke.h   |  3 --
 target/ppc/excp_helper.c |  3 --
 target/ppc/mmu-booke.c   | 63 -----------------------------------
 target/ppc/mmu_common.c  | 71 ----------------------------------------
 target/ppc/mmu_helper.c  | 16 ---------
 6 files changed, 162 deletions(-)
target/ppc/cpu.h +0 -6
index 6850d67b6875..8056c917efb1 100644
@@ -232,8 +232,6 @@ typedef enum powerpc_mmu_t {
      * keywords: tlbld tlbli TLBMISS PTEHI PTELO)
      */
     POWERPC_MMU_SOFT_74xx  = 0x00000003,
-    /* PowerPC 4xx MMU with software TLB                       */
-    POWERPC_MMU_SOFT_4xx   = 0x00000004,
     /* PowerPC MMU in real mode only                           */
     POWERPC_MMU_REAL       = 0x00000006,
     /* Freescale MPC8xx MMU model                              */
@@ -2146,7 +2144,6 @@ void ppc_compat_add_property(Object *obj, const char *name,
 #define SPR_7XX_UPMC3         (0x3AD)
 #define SPR_7XX_UPMC4         (0x3AE)
 #define SPR_USDA              (0x3AF)
-#define SPR_40x_ZPR           (0x3B0)
 #define SPR_BOOKE_MAS7        (0x3B0)
 #define SPR_74XX_MMCR2        (0x3B0)
 #define SPR_7XX_PMC5          (0x3B1)
@@ -2181,13 +2178,10 @@ void ppc_compat_add_property(Object *obj, const char *name,
 #define SPR_BOOKE_ICDBDR      (0x3D3)
 #define SPR_TLBMISS           (0x3D4)
 #define SPR_IMISS             (0x3D4)
-#define SPR_40x_ESR           (0x3D4)
 #define SPR_PTEHI             (0x3D5)
 #define SPR_ICMP              (0x3D5)
-#define SPR_40x_DEAR          (0x3D5)
 #define SPR_PTELO             (0x3D6)
 #define SPR_RPA               (0x3D6)
-#define SPR_40x_EVPR          (0x3D6)
 #define SPR_L3PM              (0x3D7)
 #define SPR_403_CDBCR         (0x3D7)
 #define SPR_L3ITCR0           (0x3D8)
target/ppc/mmu-booke.h +0 -3
index f972843bbb7b..dcbfac2caefe 100644
@@ -4,9 +4,6 @@
 #include "cpu.h"
 
 int ppcemb_tlb_search(CPUPPCState *env, target_ulong address, uint32_t pid);
-int mmu40x_get_physical_address(CPUPPCState *env, hwaddr *raddr, int *prot,
-                                target_ulong address,
-                                MMUAccessType access_type);
 hwaddr booke206_tlb_to_page_size(CPUPPCState *env, ppcmas_tlb_t *tlb);
 int ppcmas_tlb_check(CPUPPCState *env, ppcmas_tlb_t *tlb, hwaddr *raddrp,
                      target_ulong address, uint32_t pid);
target/ppc/excp_helper.c +0 -3
index 1a4c0ae5c0f0..b795d1969d01 100644
@@ -3040,9 +3040,6 @@ void ppc_cpu_do_unaligned_access(CPUState *cs, vaddr vaddr,
     insn = ppc_ldl_code(env, env->nip);
 
     switch (env->mmu_model) {
-    case POWERPC_MMU_SOFT_4xx:
-        env->spr[SPR_40x_DEAR] = vaddr;
-        break;
     case POWERPC_MMU_BOOKE:
     case POWERPC_MMU_BOOKE206:
         env->spr[SPR_BOOKE_DEAR] = vaddr;
target/ppc/mmu-booke.c +0 -63

69 lines not on this page · raw message

target/ppc/mmu_common.c +0 -71

83 lines not on this page · raw message

target/ppc/mmu_helper.c +0 -16
index faa4522ec8b0..36e06de0e36c 100644
@@ -107,19 +107,6 @@ static void ppc6xx_tlb_store(CPUPPCState *env, target_ulong EPN, int way,
     env->last_way = way;
 }
 
-/* Helpers specific to PowerPC 40x implementations */
-static inline void ppc4xx_tlb_invalidate_all(CPUPPCState *env)
-{
-    ppcemb_tlb_t *tlb;
-    int i;
-
-    for (i = 0; i < env->nb_tlb; i++) {
-        tlb = &env->tlb.tlbe[i];
-        tlb->prot &= ~PAGE_VALID;
-    }
-    tlb_flush(env_cpu(env));
-}
-
 static void booke206_flush_tlb(CPUPPCState *env, int flags,
                                const int check_iprot)
 {
@@ -258,9 +245,6 @@ void ppc_tlb_invalidate_all(CPUPPCState *env)
     case POWERPC_MMU_SOFT_6xx:
         ppc6xx_tlb_invalidate_all(env);
         break;
-    case POWERPC_MMU_SOFT_4xx:
-        ppc4xx_tlb_invalidate_all(env);
-        break;
     case POWERPC_MMU_REAL:
         cpu_abort(env_cpu(env), "No TLB for PowerPC 4xx in real mode\n");
         break;
Signature · 1 line
2.47.1