MIPS: Convert R4600_V1_HIT_CACHEOP into a config option
Use a new config option to enable R4600 V1 cacheop hit workaround and remove define from the different war.h files. Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
#ifndef __ASM_MIPS_MACH_CAVIUM_OCTEON_WAR_H
|
||||
#define __ASM_MIPS_MACH_CAVIUM_OCTEON_WAR_H
|
||||
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 0
|
||||
#define R4600_V2_HIT_CACHEOP_WAR 0
|
||||
#define BCM1250_M3_WAR 0
|
||||
#define SIBYTE_1956_WAR 0
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#ifndef __ASM_MACH_GENERIC_WAR_H
|
||||
#define __ASM_MACH_GENERIC_WAR_H
|
||||
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 0
|
||||
#define R4600_V2_HIT_CACHEOP_WAR 0
|
||||
#define BCM1250_M3_WAR 0
|
||||
#define SIBYTE_1956_WAR 0
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
* R4600 CPU modules for the Indy come with both V1.7 and V2.0 processors.
|
||||
*/
|
||||
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 1
|
||||
#define R4600_V2_HIT_CACHEOP_WAR 1
|
||||
#define BCM1250_M3_WAR 0
|
||||
#define SIBYTE_1956_WAR 0
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#ifndef __ASM_MIPS_MACH_IP27_WAR_H
|
||||
#define __ASM_MIPS_MACH_IP27_WAR_H
|
||||
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 0
|
||||
#define R4600_V2_HIT_CACHEOP_WAR 0
|
||||
#define BCM1250_M3_WAR 0
|
||||
#define SIBYTE_1956_WAR 0
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#ifndef __ASM_MIPS_MACH_IP28_WAR_H
|
||||
#define __ASM_MIPS_MACH_IP28_WAR_H
|
||||
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 0
|
||||
#define R4600_V2_HIT_CACHEOP_WAR 0
|
||||
#define BCM1250_M3_WAR 0
|
||||
#define SIBYTE_1956_WAR 0
|
||||
|
||||
@@ -5,7 +5,6 @@
|
||||
#ifndef __ASM_MIPS_MACH_IP30_WAR_H
|
||||
#define __ASM_MIPS_MACH_IP30_WAR_H
|
||||
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 0
|
||||
#define R4600_V2_HIT_CACHEOP_WAR 0
|
||||
#define BCM1250_M3_WAR 0
|
||||
#define SIBYTE_1956_WAR 0
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#ifndef __ASM_MIPS_MACH_IP32_WAR_H
|
||||
#define __ASM_MIPS_MACH_IP32_WAR_H
|
||||
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 0
|
||||
#define R4600_V2_HIT_CACHEOP_WAR 0
|
||||
#define BCM1250_M3_WAR 0
|
||||
#define SIBYTE_1956_WAR 0
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#ifndef __ASM_MIPS_MACH_MIPS_WAR_H
|
||||
#define __ASM_MIPS_MACH_MIPS_WAR_H
|
||||
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 0
|
||||
#define R4600_V2_HIT_CACHEOP_WAR 0
|
||||
#define BCM1250_M3_WAR 0
|
||||
#define SIBYTE_1956_WAR 0
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#ifndef __ASM_MIPS_MACH_MIPS_WAR_H
|
||||
#define __ASM_MIPS_MACH_MIPS_WAR_H
|
||||
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 0
|
||||
#define R4600_V2_HIT_CACHEOP_WAR 0
|
||||
#define BCM1250_M3_WAR 0
|
||||
#define SIBYTE_1956_WAR 0
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
* The RM200C seems to have been shipped only with V2.0 R4600s
|
||||
*/
|
||||
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 0
|
||||
#define R4600_V2_HIT_CACHEOP_WAR 1
|
||||
#define BCM1250_M3_WAR 0
|
||||
#define SIBYTE_1956_WAR 0
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#ifndef __ASM_MIPS_MACH_SIBYTE_WAR_H
|
||||
#define __ASM_MIPS_MACH_SIBYTE_WAR_H
|
||||
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 0
|
||||
#define R4600_V2_HIT_CACHEOP_WAR 0
|
||||
|
||||
#if defined(CONFIG_SB1_PASS_2_WORKAROUNDS)
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
#ifndef __ASM_MIPS_MACH_TX49XX_WAR_H
|
||||
#define __ASM_MIPS_MACH_TX49XX_WAR_H
|
||||
|
||||
#define R4600_V1_HIT_CACHEOP_WAR 0
|
||||
#define R4600_V2_HIT_CACHEOP_WAR 0
|
||||
#define BCM1250_M3_WAR 0
|
||||
#define SIBYTE_1956_WAR 0
|
||||
|
||||
@@ -72,37 +72,6 @@
|
||||
#define DADDI_WAR 0
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Pleasures of the R4600 V1.x. Cite from the IDT R4600 V1.7 errata:
|
||||
*
|
||||
* 18. The CACHE instructions Hit_Writeback_Invalidate_D, Hit_Writeback_D,
|
||||
* Hit_Invalidate_D and Create_Dirty_Excl_D should only be
|
||||
* executed if there is no other dcache activity. If the dcache is
|
||||
* accessed for another instruction immeidately preceding when these
|
||||
* cache instructions are executing, it is possible that the dcache
|
||||
* tag match outputs used by these cache instructions will be
|
||||
* incorrect. These cache instructions should be preceded by at least
|
||||
* four instructions that are not any kind of load or store
|
||||
* instruction.
|
||||
*
|
||||
* This is not allowed: lw
|
||||
* nop
|
||||
* nop
|
||||
* nop
|
||||
* cache Hit_Writeback_Invalidate_D
|
||||
*
|
||||
* This is allowed: lw
|
||||
* nop
|
||||
* nop
|
||||
* nop
|
||||
* nop
|
||||
* cache Hit_Writeback_Invalidate_D
|
||||
*/
|
||||
#ifndef R4600_V1_HIT_CACHEOP_WAR
|
||||
#error Check setting of R4600_V1_HIT_CACHEOP_WAR for your platform
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Writeback and invalidate the primary cache dcache before DMA.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user