xref: /linux/arch/mips/include/asm/mach-loongson2ef/cpu-feature-overrides.h (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1*5831fdb0SJiaxun Yang /* SPDX-License-Identifier: GPL-2.0-or-later */
271e2f4ddSJiaxun Yang /*
371e2f4ddSJiaxun Yang  * Copyright (C) 2009 Wu Zhangjin <wuzhangjin@gmail.com>
471e2f4ddSJiaxun Yang  * Copyright (C) 2009 Philippe Vachon <philippe@cowpig.ca>
571e2f4ddSJiaxun Yang  * Copyright (C) 2009 Zhang Le <r0bertz@gentoo.org>
671e2f4ddSJiaxun Yang  *
771e2f4ddSJiaxun Yang  * reference: /proc/cpuinfo,
871e2f4ddSJiaxun Yang  *	arch/mips/kernel/cpu-probe.c(cpu_probe_legacy),
971e2f4ddSJiaxun Yang  *	arch/mips/kernel/proc.c(show_cpuinfo),
1071e2f4ddSJiaxun Yang  *	loongson2f user manual.
1171e2f4ddSJiaxun Yang  */
1271e2f4ddSJiaxun Yang 
13*5831fdb0SJiaxun Yang #ifndef __ASM_MACH_LOONGSON2EF_CPU_FEATURE_OVERRIDES_H
14*5831fdb0SJiaxun Yang #define __ASM_MACH_LOONGSON2EF_CPU_FEATURE_OVERRIDES_H
1571e2f4ddSJiaxun Yang 
1671e2f4ddSJiaxun Yang #define cpu_has_32fpr		1
1771e2f4ddSJiaxun Yang #define cpu_has_3k_cache	0
1871e2f4ddSJiaxun Yang #define cpu_has_4k_cache	1
1971e2f4ddSJiaxun Yang #define cpu_has_4kex		1
2071e2f4ddSJiaxun Yang #define cpu_has_64bits		1
2171e2f4ddSJiaxun Yang #define cpu_has_cache_cdex_p	0
2271e2f4ddSJiaxun Yang #define cpu_has_cache_cdex_s	0
2371e2f4ddSJiaxun Yang #define cpu_has_counter		1
2471e2f4ddSJiaxun Yang #define cpu_has_dc_aliases	(PAGE_SIZE < 0x4000)
2571e2f4ddSJiaxun Yang #define cpu_has_divec		0
2671e2f4ddSJiaxun Yang #define cpu_has_ejtag		0
2771e2f4ddSJiaxun Yang #define cpu_has_inclusive_pcaches	1
2871e2f4ddSJiaxun Yang #define cpu_has_llsc		1
2971e2f4ddSJiaxun Yang #define cpu_has_mcheck		0
3071e2f4ddSJiaxun Yang #define cpu_has_mdmx		0
3171e2f4ddSJiaxun Yang #define cpu_has_mips16		0
3271e2f4ddSJiaxun Yang #define cpu_has_mips16e2	0
3371e2f4ddSJiaxun Yang #define cpu_has_mips3d		0
3471e2f4ddSJiaxun Yang #define cpu_has_mipsmt		0
3571e2f4ddSJiaxun Yang #define cpu_has_smartmips	0
3671e2f4ddSJiaxun Yang #define cpu_has_tlb		1
3771e2f4ddSJiaxun Yang #define cpu_has_vce		0
3871e2f4ddSJiaxun Yang #define cpu_has_veic		0
3971e2f4ddSJiaxun Yang #define cpu_has_vint		0
4071e2f4ddSJiaxun Yang #define cpu_has_vtag_icache	0
4171e2f4ddSJiaxun Yang #define cpu_has_watch		1
4271e2f4ddSJiaxun Yang 
4371e2f4ddSJiaxun Yang #endif /* __ASM_MACH_LOONGSON64_CPU_FEATURE_OVERRIDES_H */
44