Release 1.0, 1 July 2002
F. Chapter F
Memory Management Unit
105
F.11.10
TLB Replacement Policy
Automatic TLB Replacement Rule
On an automatic replacement write to the TLB, the MMU picks the entry to write
according to the following rules:
1. If the following conditions are satisfied—
■
the new entry maps to an 8-Kbyte or an 4-Mbyte unlocked page
■
and
ASI_MCNTRL.fw_fITLB
= 0 for IMMU automatic replacement
■
and
ASI_MCNTRL.fw_fDTLB
= 0 for DMMU automatic replacement
—then the replacement is directed to the sTLB (2-way TLB). Otherwise, the
replacement occurs in the fully associative TLB (fTLB).
2. If replacement is directed to the 2-way TLB, then the replacement set index is
generated from the TLB Tag Access Register: bits 21:13, bits 30:22 or bits 29:22
depending on the page size and
MCNTL.RMD
for both I-MMU and D-MMU.
3. If replacement is directed to the fully associative TLB (fTLB), then the following
alternatives are evaluated:
a. The first invalid entry is replaced (measuring from entry 0). If there is no
invalid entry, then
b. the first unused, unlocked (LRU, but clear) entry will be replaced (measuring
from entry 0). If there is no unused unlocked entry, then
c. all used bits are reset, and the process is repeated from Step 3b.
If fTLB is the target of the automatic replacement and all entries in the fTLB have
their lock bit set, the automatic replacement operation is ignored and the entries
in the target fTLB remain unchanged.
Restriction of sTLB Entry Direct Replacement
On SPARC64 V, direct replacement of a specific sTLB entry requires that the
stxa
instruction to the I/D TLB Data Access Register be designated as follows.
■
stxa
ASI designation:
■
ASI 55
16
for sITLB
■
ASI 5D
16
for sDTLB
■
stxa
virtual address designation:
■
VA<17:16> = 10
02
: sTLB designation
■
VA<15> = 0 or 1
: Error injection designation
■
VA<13> = 0 or 1
: 8-Kbyte or 4-Mbyte page designation
■
VA<12> = 0 or 1
: sTLB way number
■
VA<11:3>
: sTLB index number
Summary of Contents for SPARC JPS1
Page 3: ...3 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 11: ...viii SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 23: ...12 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 25: ...14 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 26: ...15 F CHAPTER 4 Data Formats Please refer to Chapter 4 Data Formats in Commonality ...
Page 27: ...16 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 55: ...44 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 71: ...60 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 79: ...68 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 93: ...82 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 95: ...84 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 118: ...F APPENDIX 107 G Assembly Language Syntax Please refer to Appendix G of Commonality ...
Page 119: ...108 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 120: ...F APPENDIX 109 H Software Considerations Please refer to Appendix H of Commonality ...
Page 121: ...110 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 123: ...112 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 124: ...F APPENDIX 113 J Changes from SPARC V8 to SPARC V9 Please refer to Appendix K of Commonality ...
Page 125: ...114 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 126: ...F APPENDIX 115 K Programming with the Memory Models Please refer to Appendix J of Commonality ...
Page 127: ...116 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 143: ...132 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 159: ...148 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 211: ...200 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 223: ...212 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 229: ...218 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 233: ...222 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...
Page 234: ...223 F CHAPTER Bibliography General References Please refer to Bibliography in Commonality ...
Page 235: ...224 SPARC JPS1 Implementation Supplement Fujitsu SPARC64 V Release 1 0 1 July 2002 ...