[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:
parent
d933e97f9d
commit
4dfc28b7e8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=308697
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user