Each TLB entry contains a virtual address, a page size, a physical address, and a set of memory properties. Each is marked as being associated with a particular application space, or as global for all application spaces. A TLB entry matches if bits [31: N] of the modified virtual address (MVA) match, where N is log2 of the page size for the TLB entry. It is either marked as global, or the ASID matched the current ASID.
A TLB entry matches when these conditions are true:
- Its virtual address matches that of the requested address.
- Its non-secure TLB ID (NSTID) matches the secure or non-secure state of the MMU request.
- Its ASID matches the current ASID or is global.
The operating system must ensure that, at most, one TLB entry matches at any time. A TLB can store entries based on the following block sizes:
- Supersections
- 16 MB blocks of memory
- Sections
- 1 MB blocks of memory
- Large pages
- 64 KB blocks of memory
- Small pages
- 4 KB blocks of memory
Supersections, sections, and large pages are supported to permit mapping of a large region of memory while using only a single entry in a TLB. If no mapping for an address is found within the TLB, then the translation table is automatically read by hardware and a mapping is placed in the TLB. (The translation table entries are discussed in detail in Translation Table Base Register 0 and 1).