Virtual Mode - Xilinx MicroBlaze Reference Manual

Hide thumbs Also See for MicroBlaze:
Table of Contents

Advertisement

Real Mode
The processor references memory when it fetches an instruction and when it accesses data
with a load or store instruction. Programs reference memory locations using a 32-bit
effective address calculated by the processor. When real mode is enabled, the physical
address is identical to the effective address and the processor uses it to access physical
memory. After a processor reset, the processor operates in real mode. Real mode can also
be enabled by clearing the VM bit in the MSR.
Physical-memory data accesses (loads and stores) are performed in real mode using the
effective address. Real mode does not provide system software with virtual address
translation, but the full memory access-protection is available, implemented when
> 1 (User Mode) and
C_USE_MMU
Implementation of a real-mode memory manager is more straightforward than a virtual-
mode memory manager. Real mode is often an appropriate solution for memory
management in simple embedded environments, when access-protection is necessary, but
virtual address translation is not required.

Virtual Mode

In virtual mode, the processor translates an effective address into a physical address using
the process shown in
address can be extended up to 64 bits. Virtual mode can be enabled by setting the VM bit
in the MSR.
X-Ref Target - Figure 2-18
0
PID
0
MicroBlaze Processor Reference Guide
UG984 (v2018.2) June 21, 2018
C_AREA_OPTIMIZED
Figure
2-18. With the Physical Address Extension (PAE) the physical
0
0
Effective Page Number
8
Effective Page Number
Translation Look-Aside
Buffer (TLB) Look-Up
0
Real Page Number
Physical Address Extension: Real Page Number
Figure 2-18: Virtual-Mode Address Translation
www.xilinx.com
Chapter 2: MicroBlaze Architecture
= 0 (Performance) or 2 (Frequency).
24
31
Processor ID Register
n
31
Offset
32-bit Effective Address
n+8
39
Offset
40-bit Virtual Address
31
Offset
32-bit Physical Address
or
32-63
Offset
Up to 64-bit Physical Address
Send Feedback
X19755-091317
59

Advertisement

Table of Contents
loading

Table of Contents