MIPS: Netlogic: Cache, TLB support and feature overrides for XLR
authorJayachandran C <jayachandranc@netlogicmicro.com>
Fri, 6 May 2011 20:06:21 +0000 (01:36 +0530)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 19 May 2011 08:55:40 +0000 (09:55 +0100)
CPU_XLR case added to mm/tlbex.c
CPU_XLR case added to mm/c-r4k.c for PINDEX attribute
Feature overrides for XLR cpu.

Signed-off-by: Jayachandran C <jayachandranc@netlogicmicro.com>
To: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/2333/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/include/asm/module.h
arch/mips/mm/c-r4k.c
arch/mips/mm/tlbex.c

index d94085a3eafbb20577f2205fe388f30f90a01928..bc01a02cacd8fd95ee3ab50378ae64aee3c701bb 100644 (file)
@@ -118,6 +118,8 @@ search_module_dbetables(unsigned long addr)
 #define MODULE_PROC_FAMILY "LOONGSON2 "
 #elif defined CONFIG_CPU_CAVIUM_OCTEON
 #define MODULE_PROC_FAMILY "OCTEON "
+#elif defined CONFIG_CPU_XLR
+#define MODULE_PROC_FAMILY "XLR "
 #else
 #error MODULE_PROC_FAMILY undefined for your processor configuration
 #endif
index 71bddf8f7d259affedba95b71ee18f2c448d12c9..d9bc5d3593b697d463f6bff7d4da1971c125e2a4 100644 (file)
@@ -1006,6 +1006,7 @@ static void __cpuinit probe_pcache(void)
        case CPU_25KF:
        case CPU_SB1:
        case CPU_SB1A:
+       case CPU_XLR:
                c->dcache.flags |= MIPS_CACHE_PINDEX;
                break;
 
index f5734c2c809779364600d8364870f4b156ada1e6..424ed4b92e6d9435107a96f260329b3a40ac2992 100644 (file)
@@ -404,6 +404,7 @@ static void __cpuinit build_tlb_write_entry(u32 **p, struct uasm_label **l,
        case CPU_5KC:
        case CPU_TX49XX:
        case CPU_PR4450:
+       case CPU_XLR:
                uasm_i_nop(p);
                tlbw(p);
                break;