Use the MMU view to perform address translations or for an overview of the translation tables and virtual memory map.
This view enables you to:
Perform simple virtual to physical address translation.
Perform simple physical to virtual address translation.
Perform MMU page table walks.
See an overview of the virtual memory map.
Freeze the view to prevent it from being updated by a running target.
MMU Translation tab
The Translation tab enables you to translate:
virtual address to physical address
physical address to one or more virtual addresses.
Figure 10-17 MMU Translation tab view
To perform an address translation in the Translation tab:
Enter a physical or virtual address in the address field. You can also enter an expression that evaluates to an address.
Select Physical to Virtual or Virtual to Physical depending on the translation type.
Click Translate to perform the address translation.
The Result shows the output address after the translation. The view also shows the details of the translation regime and parameters. You can customize these parameters using the MMU Settings dialog.
MMU Tables tab
Use the Tables tab to see the translation tables used by the selected translation regime. You can change the translation regime using the MMU Settings dialog.
Figure 10-18 MMU Tables tab view
The Tables tab contains the following columns:
- Input Address
Specifies the input address to the translation table. This is usually the virtual address, but it can also be an intermediate physical address.
Specifies the type of entry in the translation table, for example Page Table, Section, Super Section, Small Page, or Large Page.
- Output Address
Specifies the output address from the translation table. This is usually the physical address, but it can also be an intermediate physical address.
Specifies the memory attributes for the memory region.
The Tables tab also provides additional information for each row of the translation table:
- Descriptor Address
Specifies the address of the selected translation table location.
- Descriptor Value
Specifies the content of the selected translation table location.
- Input Address Range
Specifies the range of input addresses that are mapped by the selected translation table location.
- Next-level Table Address
Specifies the Descriptor Address for the next level of lookup in the translation table.
Memory Map tab
The Memory Map provides a view of the virtual memory layout by combining translation table entries that map to contiguous regions of physical memory with common memory type, cacheability, shareability, and access attributes.
Figure 10-19 Memory Map tab view
Toolbar and context menu options
The following options are available from the toolbar or context menu:
Links this view to the selected connection in the Debug Control view. This is the default. Alternatively you can link the view to a different connection. If the connection you want is not shown in the drop-down list you might have to select it first in the Debug Control view.
- MMU settings
This enables you to change the translation regime and input parameters. It contains:
Figure 10-20 MMU settings
The MMU Settings dialog contains:
- Use current system translation settings
- Use this to instruct the debugger to use the translation regime from the current system state.
- Use custom translation settings
- Use this to instruct the debugger to use a different translation regime.
- Use this to select the translation regime you want the debugger to use. The dialog shows the translation regimes that the debugger is aware of.
- Use this to specify a custom translation regime. For example you can change the address in TTBR0 or TTBR1 to instruct the debugger to use a custom translation regime.
- View Menu
The following View Menu options are available:
- New MMU View
Displays a new instance of the MMU view.
Refreshes the view.
- Freeze Data
Toggles the freezing of data in the current view. This also disables or enables the Refresh option.