[MIPS] Fix Config3[ULRI] printing

Bit identifier of printf %b is octal integer, but not decimal. ULRI bit is
13-th bit (starting with 0) according to MIPS Architecture Volume III v.6.
In this case the bit identifier (starts with 1) should be \16.

Reviewed by:    gonzo
Approved by:	adrian(mentor)
Differential Revision:	https://reviews.freebsd.org/D8516
This commit is contained in:
Michael Zhilin 2016-11-15 20:44:19 +00:00
parent d933e97f9d
commit 4dfc28b7e8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308697

View File

@ -481,7 +481,7 @@ cpu_identify(void)
/* Print Config3 if it contains any useful info */
if (cfg3 & ~(0x80000000))
printf(" Config3=0x%b\n", cfg3, "\20\14ULRI\2SmartMIPS\1TraceLogic");
printf(" Config3=0x%b\n", cfg3, "\20\16ULRI\2SmartMIPS\1TraceLogic");
#if defined(CPU_MIPS1004K) || defined (CPU_MIPS74K) || defined (CPU_MIPS24K)
cfg7 = mips_rd_config7();