41
32000D–04/2011
AVR32
entries in the ITLB. It is IMPLEMENTATION DEFINED whether to use fewer entries.
Impementations with a single unified TLB does not use the IRP field.
ILA - Instruction TLB Lockdown Amount. Specified the number of locked down ITLB entries.
All ITLB entries from entry 0 to entry (ILA-1) are locked down. If ILA equals zero, no entries
are locked down. Implementations with a single unified TLB does not use the ILA field.
DRP - Data TLB Replacement Pointer. Points to the DTLB entry to overwrite when a new
entry is loaded by the tlbw instruction. The DRP field may be updated automatically in an
IMPLEMENTATION DEFINED manner in order to optimize the replacement algorithm. The
DRP field can also be written by software, allowing the exception routine to implement a
replacement algorithm in software. The DRP field is 6 bits wide, allowing a maximum of 64
entries in the DTLB. It is IMPLEMENTATION DEFINED whether to use fewer entries.
Implementations with a single unified TLB use the DRP field to point into the unified TLB.
DLA - Data TLB Lockdown Amount. Specified the number of locked down DTLB or UTLB
entries. All DTLB entries from entry 0 to entry (DLA-1) are locked down. If DLA equals zero,
no entries are locked down.
S - Segmentation Enable. If set, the segmented memory model is used in the translation
process. If cleared, the memory is regarded as unsegmented. The S bit is set after reset.
N - Not Found. Set if the entry searched for by the TLB Search instruction (tlbs) was not
found in the TLB.
I - Invalidate. Writing this bit to one invalidates all TLB entries. The bit is automatically cleared
by the MMU when the invalidate operation is finished.
M - Mode. Selects whether the shared virtual memory mode or the private virtual memory
mode should be used. The M bit determines how the TLB address comparison should be
E - Enable. If set, the MMU translation is enabled. If cleared, the MMU translation is disabled
and the physical address is identical to the virtual address. Access permissions are not
checked and no MMU-related exceptions are issued if the MMU is disabled. If the MMU is
disabled, the segmented memory model is used.
5.2.2.6
TLB Accessed Register HI / LO - TLBARHI / TLBARLO
The TLBARHI and TLBARLO register form one 64-bit register with 64 1-bit fields. Each of these
fields contain the Accessed bit for the corresponding TLB entry. The I bit in TLBEHI determines
whether the ITLB or DTLB Accessed bits are read. The Accessed bit is 0 if the page has been
accessed, and 1 if it has not been accessed. Bit 31-0 in TLBARLO correspond to TLB entry 0-
31, bit 31-0 in TLBARHI correspond to TLB entry 32-63. If the TLB implementation contains less
than 64 entries then nonimplemented entries are read as 0.
Note: The contents of TLBARHI/TLBARLO are reversed to let the Count Leading Zero (CLZ)
instruction be used directly on the contents of the registers. E.g. if CLZ returns the value four on
the contents of TLBARLO, then item four is the first unused item in the TLB.
Table 5-4.
MMU mode implied by the M bit
MMode
0
Private Virtual Memory
1
Shared Virtual Memory