
Memory Management Unit
e200z3 Power Architecture Core Reference Manual, Rev. 2
Freescale Semiconductor
5-5
Note that when a TID value in a TLB entry is all zeros, it always causes a match in the PID compare
(effectively ignoring the values of the PID register). Thus, the operating system can set the values of all
the TIDs to zero, effectively eliminating the PID value from all translation comparisons.
5.2.4
Translation Flow
The effective address, concatenated with the address space value of the corresponding MSR bit (MSR[IS]
or MSR[DS]), is compared to the appropriate number of bits of the EPN field (depending on the page size)
and the TS field of TLB entries. If the contents of the effective address plus the address space bit matches
the EPN field and TS bit of the TLB entry, that TLB entry is a candidate for a possible translation match.
In addition to a match in the EPN field and TS, a matching TLB entry must match with the current process
ID of the access (in PID0), or have a TID value of 0, indicating that the entry is globally shared among all
processes.
shows the translation match logic for the effective address plus its attributes, collectively called
the virtual address, and how it is compared with the corresponding fields in the TLB entries.
Figure 5-2. Virtual Address and TLB-Entry Compare Process
The page size defined for a TLB entry determines how many bits of the effective address are compared
with the corresponding EPN field in the TLB entry as shown in
. On a TLB hit, the corresponding
bits of the real page number (RPN) field are used to form the real address.
Table 5-2. Page Size (for e200z3 Core) and EPN Field Comparison
SIZE Field
Page Size
(4
SIZE
Kbytes)
EA to EPN Comparison
(Bits 32–53; 2
×
SIZE)
0b0001
4 Kbytes
EA[32–51] = EPN[32–51]?
0b0010
16 Kbytes
EA[32–49] = EPN[0–49]?
0b0011
64 Kbytes
EA[32–47] = EPN[32–47]?
0b0100
256 Kbytes
EA[32–45] = EPN[32–45]?
0b0101
1 Mbyte
EA[32–43] = EPN[32–43]?
0b0110
4 Mbytes
EA[32–41] = EPN[32–41]?
TLB Entry Hit
=0?
Private Page
Shared Page
=?
=?
TLB_entry[V]
TLB_entry[TS]
AS (from MSR[IS] or MSR[DS])
Process ID
TLB_entry[TID]
TLB_entry[EPN]
EA Page Number Bits
=?
Содержание e200z3
Страница 1: ...e200z3 Power Architecture Core Reference Manual Supports e200z3 e200z335 e200z3coreRM Rev 2 06 2008 ...
Страница 32: ...e200z3 Power Architecture Core Reference Manual Rev 2 xii Freescale Semiconductor ...
Страница 50: ...Register Model e200z3 Power Architecture Core Reference Manual Rev 2 2 2 Freescale Semiconductor ...
Страница 238: ...Memory Management Unit e200z3 Power Architecture Core Reference Manual Rev 2 5 16 Freescale Semiconductor ...
Страница 332: ...Power Management e200z3 Power Architecture Core Reference Manual Rev 2 8 4 Freescale Semiconductor ...
Страница 424: ...Revision History e200z3 Power Architecture Core Reference Manual Rev 2 A 2 Freescale Semiconductor ...