2.1 Probing your CPU - Config CP0 registers
Programming the MIPS32® 74K™ Core Family, Revision 02.14
24
Config1[MMUSize]
: the size of the TLB array (the array has 1 entries).
Config1[IS,IL,IA,DS,DL,DA]
: for each cache this reports
So if (IS, IL, IA) is (2,4,3) you have 256 sets/way, 32 bytes per line and 4-way set associative: that’s a 32Kbyte cache.
Config1[C2,FP]
: 1 if coprocessor 2 or or an FPU (coprocessor 1) fitted, respectively. A coprocessor 2 would be a cus-
tomer-designed coprocessor.
Config1[MD]
: 1 if MDMX ASE is implemented in the floating point unit (very unlikely for the 74K core).
Config1[PC]
: there is at least one performance counter implemented, see
Section 8.4, "Performance counters"
Config1[WR]
: reads 1 because the 74K core always has watchpoint registers, see
Section 8.3, "CP0 Watchpoints"
Config1[CA]
: reads 1 because the MIPS16e compressed-code instruction set is available (as it generally is on MIPS
Technologies cores).
Config1[EP]
: reads 1 because an EJTAG debug unit is always provided, see
Section 8.1, "EJTAG on-chip debug unit"
Config2[M]
: continuation bit, 1 if
Config3
is implemented.
Config2[TU]
: implementation-specific bits related to tertiary cache, if fitted. Can be writable.
Config2[TS,TL,TA]
: tertiary cache size and shape - encoded just like
Config1[IS,IL,IA]
which see above.
Config2[SU]
: implementation-specific bits for secondary cache, if fitted. Can be writable.
Config2[L2B]
: Set to disable L2 cache (“bypass mode”). Setting this bit also forces
Config2[SL]
to 0 — most OS code
will conclude that there isn't an L2 cache on the system, which can be useful.
Writing this bit controls a signal out to the L2 cache hardware. However, reading it does not read back what you just
wrote: it reflects the value of a signal sent back from the L2 cache. With MIPS Technologies' L2 cache logic, that
feedback signal will reflect the value you just wrote, with some implementation-dependent delay (it's unlikely to be
100 cycles, but it could easily be more than 10). For more details refer to
“MIPS® PDtrace™ Interface and Trace
Config2[SS,SL,SA]
: secondary cache size and shape, encoded like
Config1[IS,IL,IA]
above.
2.1.3 The Config3 register
Config3
provides information about the presence of optional extensions to the base MIPS32 architecture. A few of
them were in
Config2
, but that ran out of bits.
Figure 2.4 Config3 Register Format
S Number of sets per way. Calculate as: 64
×
2
S
L Line size. Zero means no cache at all, otherwise calculate as: 2
×
2
L
A Associativity/number of ways - calculate as A + 1
31
30
29
28
14
13
12
11
10
9
8 7
6
5
4
3
2
1
0
M
0
CMGCR
ULRI
0
DSP2P
DSPP
CTXTC
0
VEIC
VInt
SP CDMM MT
SM
TL
Содержание MIPS32 74K Series
Страница 1: ...Document Number MD00541 Revision 02 14 March 30 2011 Programming the MIPS32 74K Core Family...
Страница 10: ...Programming the MIPS32 74K Core Family Revision 02 14 10...
Страница 20: ...1 4 A brief guide to the 74K core implementation Programming the MIPS32 74K Core Family Revision 02 14 20...
Страница 28: ...2 2 PRId register identifying your CPU type Programming the MIPS32 74K Core Family Revision 02 14 28...
Страница 54: ...3 8 The TLB and translation Programming the MIPS32 74K Core Family Revision 02 14 54...
Страница 83: ......
Страница 86: ...6 5 FPU pipeline and instruction timing Programming the MIPS32 74K Core Family Revision 02 14 86...
Страница 101: ...The MIPS32 DSP ASE 101 Programming the MIPS32 74K Core Family Revision 02 14...
Страница 134: ...8 4 Performance counters Programming the MIPS32 74K Core Family Revision 02 14 134...
Страница 154: ...C 3 FPU changes in Release 2 of the MIPS32 Architecture Programming the MIPS32 74K Core Family Revision 02 14 154...