powerpc/xmon: fix dump_segments()
authorChristophe Leroy <christophe.leroy@c-s.fr>
Fri, 16 Nov 2018 17:31:08 +0000 (17:31 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Dec 2018 07:56:32 +0000 (18:56 +1100)
mfsrin() takes segment num from bits 31-28 (IBM bits 0-3).

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
[mpe: Clarify bit numbering]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c

index 372f4d80bcd631e6d5545c601ca0a596a9ffe230..757b8499aba2ebb52ba16850c846b726f40455f0 100644 (file)
@@ -3504,7 +3504,7 @@ void dump_segments(void)
 
        printf("sr0-15 =");
        for (i = 0; i < 16; ++i)
-               printf(" %x", mfsrin(i));
+               printf(" %x", mfsrin(i << 28));
        printf("\n");
 }
 #endif