Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 21980
b: refs/heads/master
c: de862b4
h: refs/heads/master
v: v3
  • Loading branch information
Atsushi Nemoto authored and Ralf Baechle committed Mar 21, 2006
1 parent d9e2d73 commit 5c5e0d1
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c6281edb1d5e307f056fff0e174f60fa6133adc5
refs/heads/master: de862b488e81172d4c610945efd9f3fc7f4b84a7
1 change: 1 addition & 0 deletions trunk/arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,7 @@ config CPU_R4X00
config CPU_TX49XX
bool "R49XX"
depends on SYS_HAS_CPU_TX49XX
select CPU_HAS_PREFETCH
select CPU_SUPPORTS_32BIT_KERNEL
select CPU_SUPPORTS_64BIT_KERNEL

Expand Down
1 change: 1 addition & 0 deletions trunk/arch/mips/mm/c-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -786,6 +786,7 @@ static void __init probe_pcache(void)
c->dcache.waybit = 0;

c->options |= MIPS_CPU_CACHE_CDEX_P;
c->options |= MIPS_CPU_PREFETCH;
break;

case CPU_R4000PC:
Expand Down
10 changes: 8 additions & 2 deletions trunk/arch/mips/mm/pg-r4k.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ static inline void build_nop(void)

static inline void build_src_pref(int advance)
{
if (!(load_offset & (cpu_dcache_line_size() - 1))) {
if (!(load_offset & (cpu_dcache_line_size() - 1)) && advance) {
union mips_instruction mi;

mi.i_format.opcode = pref_op;
Expand Down Expand Up @@ -166,7 +166,7 @@ static inline void build_load_reg(int reg)

static inline void build_dst_pref(int advance)
{
if (!(store_offset & (cpu_dcache_line_size() - 1))) {
if (!(store_offset & (cpu_dcache_line_size() - 1)) && advance) {
union mips_instruction mi;

mi.i_format.opcode = pref_op;
Expand Down Expand Up @@ -340,6 +340,12 @@ void __init build_clear_page(void)

if (cpu_has_prefetch) {
switch (current_cpu_data.cputype) {
case CPU_TX49XX:
/* TX49 supports only Pref_Load */
pref_offset_clear = 0;
pref_offset_copy = 0;
break;

case CPU_RM9000:
/*
* As a workaround for erratum G105 which make the
Expand Down

0 comments on commit 5c5e0d1

Please sign in to comment.