|
|
@@ -1489,6 +1489,8 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu)
|
|
|
__cpu_name[cpu] = "ICT Loongson-3";
|
|
|
set_elf_platform(cpu, "loongson3a");
|
|
|
set_isa(c, MIPS_CPU_ISA_M64R1);
|
|
|
+ c->ases |= (MIPS_ASE_LOONGSON_MMI | MIPS_ASE_LOONGSON_CAM |
|
|
|
+ MIPS_ASE_LOONGSON_EXT);
|
|
|
break;
|
|
|
case PRID_REV_LOONGSON3B_R1:
|
|
|
case PRID_REV_LOONGSON3B_R2:
|
|
|
@@ -1496,6 +1498,8 @@ static inline void cpu_probe_legacy(struct cpuinfo_mips *c, unsigned int cpu)
|
|
|
__cpu_name[cpu] = "ICT Loongson-3";
|
|
|
set_elf_platform(cpu, "loongson3b");
|
|
|
set_isa(c, MIPS_CPU_ISA_M64R1);
|
|
|
+ c->ases |= (MIPS_ASE_LOONGSON_MMI | MIPS_ASE_LOONGSON_CAM |
|
|
|
+ MIPS_ASE_LOONGSON_EXT);
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
@@ -1861,6 +1865,8 @@ static inline void cpu_probe_loongson(struct cpuinfo_mips *c, unsigned int cpu)
|
|
|
decode_configs(c);
|
|
|
c->options |= MIPS_CPU_FTLB | MIPS_CPU_TLBINV | MIPS_CPU_LDPTE;
|
|
|
c->writecombine = _CACHE_UNCACHED_ACCELERATED;
|
|
|
+ c->ases |= (MIPS_ASE_LOONGSON_MMI | MIPS_ASE_LOONGSON_CAM |
|
|
|
+ MIPS_ASE_LOONGSON_EXT | MIPS_ASE_LOONGSON_EXT2);
|
|
|
break;
|
|
|
default:
|
|
|
panic("Unknown Loongson Processor ID!");
|