MIPS: Remove unused R4300 CPU support
authorPaul Burton <paul.burton@mips.com>
Mon, 22 Jul 2019 21:59:43 +0000 (21:59 +0000)
committerPaul Burton <paul.burton@mips.com>
Tue, 23 Jul 2019 21:33:23 +0000 (14:33 -0700)
Our R4300 CPU support can only be included if a system selects
CONFIG_SYS_HAS_CPU_R4300. No system does, making all R4300-related CPU
support dead code. Remove it.

Signed-off-by: Paul Burton <paul.burton@mips.com>
Cc: linux-mips@vger.kernel.org
arch/mips/Kconfig
arch/mips/Makefile
arch/mips/include/asm/cpu-type.h
arch/mips/include/asm/cpu.h
arch/mips/include/asm/module.h
arch/mips/kernel/cpu-probe.c
arch/mips/kernel/idle.c
arch/mips/mm/c-r4k.c
arch/mips/mm/tlbex.c

index ac9ed08a7fff8ae4a2f575419a35bb1565e2edcc..ce8d5e4640a1464ef9f36ff1cbbc82e9ec1dae2a 100644 (file)
@@ -1601,15 +1601,6 @@ config CPU_VR41XX
          kernel built with this option will not run on any other type of
          processor or vice versa.
 
-config CPU_R4300
-       bool "R4300"
-       depends on SYS_HAS_CPU_R4300
-       select CPU_SUPPORTS_32BIT_KERNEL
-       select CPU_SUPPORTS_64BIT_KERNEL
-       select CPU_HAS_LOAD_STORE_LR
-       help
-         MIPS Technologies R4300-series processors.
-
 config CPU_R4X00
        bool "R4x00"
        depends on SYS_HAS_CPU_R4X00
@@ -1971,9 +1962,6 @@ config SYS_HAS_CPU_TX39XX
 config SYS_HAS_CPU_VR41XX
        bool
 
-config SYS_HAS_CPU_R4300
-       bool
-
 config SYS_HAS_CPU_R4X00
        bool
 
index eceff9b75b22fec125dbe83453e5fc00a6c297d1..e728d0555466b3b37a4d8cc2b44254dabf5b49dd 100644 (file)
@@ -163,7 +163,6 @@ cflags-y += -fno-stack-check
 #
 cflags-$(CONFIG_CPU_R3000)     += -march=r3000
 cflags-$(CONFIG_CPU_TX39XX)    += -march=r3900
-cflags-$(CONFIG_CPU_R4300)     += -march=r4300 -Wa,--trap
 cflags-$(CONFIG_CPU_VR41XX)    += -march=r4100 -Wa,--trap
 cflags-$(CONFIG_CPU_R4X00)     += -march=r4600 -Wa,--trap
 cflags-$(CONFIG_CPU_TX49XX)    += -march=r4600 -Wa,--trap
index 518659694112f5cc6fd573629d8e62d445a8be94..a6c4114e3aa7cba98fb237cd42019572c115e27f 100644 (file)
@@ -116,11 +116,6 @@ static inline int __pure __get_cpu_type(const int cpu_type)
        case CPU_VR4181A:
 #endif
 
-#ifdef CONFIG_SYS_HAS_CPU_R4300
-       case CPU_R4300:
-       case CPU_R4310:
-#endif
-
 #ifdef CONFIG_SYS_HAS_CPU_R4X00
        case CPU_R4000PC:
        case CPU_R4000SC:
index f843959f38e266f5bff03267182e3d7f88dd2214..babc602862bd93a90941664735620c8322c035ea 100644 (file)
@@ -293,7 +293,7 @@ enum cpu_type_enum {
        /*
         * R4000 class processors
         */
-       CPU_R4000PC, CPU_R4000SC, CPU_R4000MC, CPU_R4200, CPU_R4300, CPU_R4310,
+       CPU_R4000PC, CPU_R4000SC, CPU_R4000MC, CPU_R4200,
        CPU_R4400PC, CPU_R4400SC, CPU_R4400MC, CPU_R4600, CPU_R4640, CPU_R4650,
        CPU_R4700, CPU_R5000, CPU_R5500, CPU_NEVADA, CPU_R5432, CPU_R10000,
        CPU_R12000, CPU_R14000, CPU_R16000, CPU_VR41XX, CPU_VR4111, CPU_VR4121,
index 6dc0b21b8acdf8c859b4469e28ccf6b7079ea04e..eaf3f37ed583004cff885786f47c6ae264a019e7 100644 (file)
@@ -103,8 +103,6 @@ search_module_dbetables(unsigned long addr)
 #define MODULE_PROC_FAMILY "TX39XX "
 #elif defined CONFIG_CPU_VR41XX
 #define MODULE_PROC_FAMILY "VR41XX "
-#elif defined CONFIG_CPU_R4300
-#define MODULE_PROC_FAMILY "R4300 "
 #elif defined CONFIG_CPU_R4X00
 #define MODULE_PROC_FAMILY "R4X00 "
 #elif defined CONFIG_CPU_TX49XX
index a9c82338396ae6b0e8deddf11e22b09afbe24fdc..7e6b693bff0ab7eb5ff265a5922f31419c6a31ac 100644 (file)
@@ -1384,15 +1384,6 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu)
                        break;
                }
                break;
-       case PRID_IMP_R4300:
-               c->cputype = CPU_R4300;
-               __cpu_name[cpu] = "R4300";
-               set_isa(c, MIPS_CPU_ISA_III);
-               c->fpu_msk31 |= FPU_CSR_CONDX;
-               c->options = R4K_OPTS | MIPS_CPU_FPU | MIPS_CPU_32FPR |
-                            MIPS_CPU_LLSC;
-               c->tlbsize = 32;
-               break;
        case PRID_IMP_R4600:
                c->cputype = CPU_R4600;
                __cpu_name[cpu] = "R4600";
index feaf9bbb82f270b64201200ee13596c558d54902..eb2afc0b8db1a04f7d11bd06e14b97b8b9cc33a7 100644 (file)
@@ -151,7 +151,6 @@ void __init check_wait(void)
                cpu_wait = r39xx_wait;
                break;
        case CPU_R4200:
-/*     case CPU_R4300: */
        case CPU_R4600:
        case CPU_R4640:
        case CPU_R4650:
index 5166e38cd1c6882f692c447f5f12a0efd0535286..07d9aa4f7491f1c84946ad54d3b4cc91e94a987d 100644 (file)
@@ -1134,7 +1134,6 @@ static void probe_pcache(void)
        case CPU_R4400PC:
        case CPU_R4400SC:
        case CPU_R4400MC:
-       case CPU_R4300:
                icache_size = 1 << (12 + ((config & CONF_IC) >> 9));
                c->icache.linesz = 16 << ((config & CONF_IB) >> 5);
                c->icache.ways = 1;
index efffeae7f789fd7ef3889810f3140d8dcd1353e0..35471a2a3528584e93d2d619587a542839b10b02 100644 (file)
@@ -545,7 +545,6 @@ void build_tlb_write_entry(u32 **p, struct uasm_label **l,
                tlbw(p);
                break;
 
-       case CPU_R4300:
        case CPU_5KC:
        case CPU_TX49XX:
        case CPU_PR4450: