MIPS: Support 64-byte D-cache line size
Signed-off-by: Kevin Cernekee <cernekee@gmail.com> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
3807ef3f61
commit
605b7ef7b7
@ -399,6 +399,7 @@ __BUILD_BLAST_CACHE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 16)
|
|||||||
__BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 32)
|
__BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 32)
|
||||||
__BUILD_BLAST_CACHE(i, icache, Index_Invalidate_I, Hit_Invalidate_I, 32)
|
__BUILD_BLAST_CACHE(i, icache, Index_Invalidate_I, Hit_Invalidate_I, 32)
|
||||||
__BUILD_BLAST_CACHE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 32)
|
__BUILD_BLAST_CACHE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 32)
|
||||||
|
__BUILD_BLAST_CACHE(d, dcache, Index_Writeback_Inv_D, Hit_Writeback_Inv_D, 64)
|
||||||
__BUILD_BLAST_CACHE(i, icache, Index_Invalidate_I, Hit_Invalidate_I, 64)
|
__BUILD_BLAST_CACHE(i, icache, Index_Invalidate_I, Hit_Invalidate_I, 64)
|
||||||
__BUILD_BLAST_CACHE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 64)
|
__BUILD_BLAST_CACHE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 64)
|
||||||
__BUILD_BLAST_CACHE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 128)
|
__BUILD_BLAST_CACHE(s, scache, Index_Writeback_Inv_SD, Hit_Writeback_Inv_SD, 128)
|
||||||
|
@ -100,6 +100,12 @@ static inline void r4k_blast_dcache_page_dc32(unsigned long addr)
|
|||||||
blast_dcache32_page(addr);
|
blast_dcache32_page(addr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static inline void r4k_blast_dcache_page_dc64(unsigned long addr)
|
||||||
|
{
|
||||||
|
R4600_HIT_CACHEOP_WAR_IMPL;
|
||||||
|
blast_dcache64_page(addr);
|
||||||
|
}
|
||||||
|
|
||||||
static void __cpuinit r4k_blast_dcache_page_setup(void)
|
static void __cpuinit r4k_blast_dcache_page_setup(void)
|
||||||
{
|
{
|
||||||
unsigned long dc_lsize = cpu_dcache_line_size();
|
unsigned long dc_lsize = cpu_dcache_line_size();
|
||||||
@ -110,6 +116,8 @@ static void __cpuinit r4k_blast_dcache_page_setup(void)
|
|||||||
r4k_blast_dcache_page = blast_dcache16_page;
|
r4k_blast_dcache_page = blast_dcache16_page;
|
||||||
else if (dc_lsize == 32)
|
else if (dc_lsize == 32)
|
||||||
r4k_blast_dcache_page = r4k_blast_dcache_page_dc32;
|
r4k_blast_dcache_page = r4k_blast_dcache_page_dc32;
|
||||||
|
else if (dc_lsize == 64)
|
||||||
|
r4k_blast_dcache_page = r4k_blast_dcache_page_dc64;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void (* r4k_blast_dcache_page_indexed)(unsigned long addr);
|
static void (* r4k_blast_dcache_page_indexed)(unsigned long addr);
|
||||||
@ -124,6 +132,8 @@ static void __cpuinit r4k_blast_dcache_page_indexed_setup(void)
|
|||||||
r4k_blast_dcache_page_indexed = blast_dcache16_page_indexed;
|
r4k_blast_dcache_page_indexed = blast_dcache16_page_indexed;
|
||||||
else if (dc_lsize == 32)
|
else if (dc_lsize == 32)
|
||||||
r4k_blast_dcache_page_indexed = blast_dcache32_page_indexed;
|
r4k_blast_dcache_page_indexed = blast_dcache32_page_indexed;
|
||||||
|
else if (dc_lsize == 64)
|
||||||
|
r4k_blast_dcache_page_indexed = blast_dcache64_page_indexed;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void (* r4k_blast_dcache)(void);
|
static void (* r4k_blast_dcache)(void);
|
||||||
@ -138,6 +148,8 @@ static void __cpuinit r4k_blast_dcache_setup(void)
|
|||||||
r4k_blast_dcache = blast_dcache16;
|
r4k_blast_dcache = blast_dcache16;
|
||||||
else if (dc_lsize == 32)
|
else if (dc_lsize == 32)
|
||||||
r4k_blast_dcache = blast_dcache32;
|
r4k_blast_dcache = blast_dcache32;
|
||||||
|
else if (dc_lsize == 64)
|
||||||
|
r4k_blast_dcache = blast_dcache64;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* force code alignment (used for TX49XX_ICACHE_INDEX_INV_WAR) */
|
/* force code alignment (used for TX49XX_ICACHE_INDEX_INV_WAR) */
|
||||||
|
Loading…
Reference in New Issue
Block a user