Loongson 2 currently does not have dcache alias actually, because it is using
16k
page, and the dcache is 4 way set associative 64k VIPT cache. It will have
dcache alias if the page size is smaller than 16k.
And because Loongson 2 is not an SMP cpu, cpu_icache_snoops_remote_store does
not matter here.
Signed-off-by: Zhang Le <r0bertz@gentoo.org>
---
.../asm/mach-lemote/cpu-feature-overrides.h | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/arch/mips/include/asm/mach-lemote/cpu-feature-overrides.h
b/arch/mips/include/asm/mach-lemote/cpu-feature-overrides.h
index 550a10d..7484561 100644
--- a/arch/mips/include/asm/mach-lemote/cpu-feature-overrides.h
+++ b/arch/mips/include/asm/mach-lemote/cpu-feature-overrides.h
@@ -29,7 +29,7 @@
#define cpu_has_cache_cdex_p 0
#define cpu_has_cache_cdex_s 0
#define cpu_has_counter 1
-#define cpu_has_dc_aliases 1
+#define cpu_has_dc_aliases (PAGE_SIZE < 0x4000)
#define cpu_has_divec 0
#define cpu_has_dsp 0
#define cpu_has_ejtag 0
@@ -54,6 +54,5 @@
#define cpu_has_vce 0
#define cpu_has_vtag_icache 0
#define cpu_has_watch 1
-#define cpu_icache_snoops_remote_store 1
#endif /* __ASM_MACH_LEMOTE_CPU_FEATURE_OVERRIDES_H */
--
1.6.3.1
|