linux-mips
[Top] [All Lists]

[PATCH] Two fixes of Loongson cpu-feature-overrides.h

To: linux-mips@linux-mips.org
Subject: [PATCH] Two fixes of Loongson cpu-feature-overrides.h
From: Zhang Le <r0bertz@gentoo.org>
Date: Fri, 19 Jun 2009 18:01:39 +0800
Cc: Zhang Le <r0bertz@gentoo.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
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


<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH] Two fixes of Loongson cpu-feature-overrides.h, Zhang Le <=