User`s manual

SuperH Family E10A-USB Emulator Section 6 Tutorial
R20UT0870EJ1000 Rev. 10.00 Page 240 of 292
Aug 10, 2012
6.19.5 MMU Support
This function can be used when the supported MCU/MPU has an MMU.
TLB window
In the emulator, the contents of the TLB table can be easily displayed and edited by selecting
[CPU -> TLB] from the [View] menu. For details, refer to the online help.
VP_MAP translation function
The MCU/MPU, which has an MMU, translates internal addresses (virtual addresses) to actual
memory addresses (physical addresses). Address translation is performed according to the address
translation table (translation look-aside buffer: TLB) in the MCU/MPU. The MMU operates
during command input wait state as well as during user program execution. When a command for
memory access is executed while the MMU address translation function is enabled, the address
translated by the MMU is accessed. If the specified address is not within the TLB, a TLB miss
occurs, and the TLB must be updated by the user program.
The emulator has address translation functions according to the VP_MAP tables. The VP_MAP
tables are the address translation tables for the emulator created with the VPMAP_SET command.
The following shows an example of how to use the VP_MAP tables.
Example:
1. Create VP_MAP tables for translating virtual addresses H'10000 to H'10fff to physical
addresses H'4000000 to H'4000fff and virtual addresses H'11000 to H'11fff to physical
addresses H'0 to H'fff.
>vs 10000 10fff 4000000 (RET)
>vs 11000 11fff 0 (RET)
>vd (RET)
<VADDR_TOP> <VADDR_END> <PADDR_TOP>
00010000 00010fff 04000000
00011000 00011fff 00000000
DISABLE