Commit 32c8c4c6 authored by Christophe Leroy's avatar Christophe Leroy Committed by Michael Ellerman

powerpc/xmon: fix dump_segments()

mfsrin() takes segment num from bits 31-28 (IBM bits 0-3).
Signed-off-by: default avatarChristophe Leroy <christophe.leroy@c-s.fr>
[mpe: Clarify bit numbering]
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
parent 0ed5b558
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment