summaryrefslogtreecommitdiffstats
path: root/arch/mips/lib
diff options
context:
space:
mode:
authorGleb O. Raiko <raiko@niisi.msk.ru>2000-02-28 09:59:13 +0000
committerGleb O. Raiko <raiko@niisi.msk.ru>2000-02-28 09:59:13 +0000
commitb98f565d636da0d4ae873c42c218ae61c0a833e1 (patch)
treec3d2f900680743ba425458f5fa45f8d99b3d9530 /arch/mips/lib
parent483206cac0f9da4591be0ede4db972d26c9efcff (diff)
Fix the bug of (improperly) dealing with the Index reg
Diffstat (limited to 'arch/mips/lib')
-rw-r--r--arch/mips/lib/r3k_dump_tlb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/lib/r3k_dump_tlb.c b/arch/mips/lib/r3k_dump_tlb.c
index adc4279e6..34ee45953 100644
--- a/arch/mips/lib/r3k_dump_tlb.c
+++ b/arch/mips/lib/r3k_dump_tlb.c
@@ -29,7 +29,7 @@ dump_tlb(int first, int last)
for(i=first;i<=last;i++)
{
- write_32bit_cp0_register(CP0_INDEX, i);
+ write_32bit_cp0_register(CP0_INDEX, i<<8);
__asm__ __volatile__(
".set\tnoreorder\n\t"
"tlbr\n\t"