From b98f565d636da0d4ae873c42c218ae61c0a833e1 Mon Sep 17 00:00:00 2001 From: "Gleb O. Raiko" Date: Mon, 28 Feb 2000 09:59:13 +0000 Subject: Fix the bug of (improperly) dealing with the Index reg --- arch/mips/lib/r3k_dump_tlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/mips/lib/r3k_dump_tlb.c') 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" -- cgit v1.2.3