Renesas SH7781 User Manual

Page 177

Advertising
background image

7. Memory Management Unit (MMU)

Rev.1.00 Jan. 10, 2008 Page 147 of 1658

REJ09B0261-0100

Area 0

Area 1

Area 2

Area 3

Area 4

Area 5

Area 6

Area 7

Physical

address space

256

256

U0 area

Cacheable

Address translation possible

Address error

Address error

On-chip memory area

Address error

Store queue area

P0 area

Cacheable

Address translation possible

User mode

Privileged mode

P1 area

Cacheable

Address translation not possible

P2 area

Non-cacheable

Address translation not possible

P3 area

Cacheable

Address translation possible

P4 area

Non-cacheable

Address translation not possible

H'0000 0000

H'8000 0000

H'E000 0000
H'E400 0000
H'E500 0000
H'E600 0000
H'FFFF FFFF

H'FFFF FFFF

H'0000 0000

H'8000 0000

H'A000 0000

H'C000 0000

H'E000 0000

Figure 7.3 Virtual Address Space (AT in MMUCR = 1)

(a)

P0, P3, and U0 Areas

The P0, P3, and U0 areas allow address translation using the TLB and access using the cache.

When the MMU is disabled, replacing the upper 3 bits of an address with 0s gives the
corresponding physical address. Whether or not the cache is used is determined by the CCR
setting. When the cache is used, switching between the copy-back method and the write-
through method for write accesses is specified by the WT bit in CCR.

When the MMU is enabled, these areas can be mapped onto any physical address space in 1-,
4-, 64-Kbyte, or 1-Mbyte page units in TLB compatible mode and in 1-, 4-, 8-, 64, 256-Kbyte,
1-, 4-, or 64-Mbyte page units in TLB extended mode using the TLB. When CCR is in the
cache enabled state and the C bit for the corresponding page of the TLB entry is 1, accesses
can be performed using the cache. When the cache is used, switching between the copy-back
method and the write-through method for write accesses is specified by the WT bit of the TLB
entry.

When the P0, P3, and U0 areas are mapped onto the control register area which is allocated in
the area 7 in physical address space by means of the TLB, the C bit for the corresponding page
must be cleared to 0.

Advertising