Chapter 2
Programming the MIPS32® 74K™ Core Family, Revision 02.14
21
Initialization and identity
What happens when the CPU is first powered up? These functions are perhaps more often associated with a ROM
monitor than an OS.
2.1 Probing your CPU - Config CP0 registers
The four registers
Config
and
Config1-3
are 32-bit CP0 registers which contain information about the CPU’s capa-
bilities.
Config1-3
are strictly read-only. The few writable fields in
Config
— notably
Config[K0]
— are there for
historic compatibility, and are typically written once soon after bootstrap and never changed again.
The 74K core also defines
Config7
for some implementation-specific settings (which most programmers will never
use).
Broadly speaking the registers have these roles:
While initializing your CPU, you might also want to look at the
EBase
register, which can be used to relocate your
exception entry points: see
and the text round it.
Table 2.1 Roles of Config registers
Config
A mix of historical and CPU-dependent information, described in
below. Some
fields are writable.
Config1
Read-only, strictly to the MIPS32 architecture.
Config1
shows the primary cache configuration
and basic CPU capabilities, while
Config2
shows information about L2 and L3 caches, if fitted
(the L2 and the L3 cache is unavailable in 74K family cores). Shown in
and
below.
Config2
Config3
Read-only, strictly to Release 2 of the
architecture.
More CPU capability information.
Config6
Provides information about the presence of optional extensions to the base MIPS32 architec-
ture in addition to those specified in
Config2
and
Config3
.
Config7
74K-core-specific, with both read-only and writable fields. It’s a strong convention that the
writable fields should default to “expected” behavior, so beginners may simply leave these
fields alone. The fields are described later, in
Содержание 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...