Comparison Of Useg And Xuseg - NEC uPD98502 User Manual

Network controller
Table of Contents

Advertisement

The User segment starts at address 0 and the current active user process resides in either useg (in 32-bit mode) or
xuseg (in 64-bit mode). The TLB identically maps all references to useg/xuseg from all modes, and controls cache
accessibility.
The processor operates in User mode when the Status register contains the following bit-values:
KSU = 10
EXL = 0
ERL = 0
In conjunction with these bits, the UX bit in the Status register selects addressing mode as follows:
When UX = 0, 32-bit useg space is selected.
When UX = 1, 64-bit xuseg space is selected.
Table 2-27 lists the characteristics of each user segment (useg and xuseg).
Address Bit
Value
KSU
32-bit
10
A31 = 0
64-bit
10
A(63:40) = 0
(1) useg (32-bit mode)
In User mode, when UX = 0 in the Status register and the most significant bit of the virtual address is 0, this virtual
address space is labeled useg.
Any attempt to reference an address with the most-significant bit set while in User mode causes an Address Error
exception (see Section 2.5 Exception Processing).
The TLB Mismatch exception vector is used for TLB misses.
(2) xuseg (64-bit mode)
In User mode, when UX = 1 in the Status register and bits 63 to 40 of the virtual address are all 0, this virtual
address space is labeled xuseg.
Any attempt to reference an address with bits 63 to 40 equal to 1 causes an Address Error exception (see Section
2.5 Exception Processing).
The XTLB Mismatch exception vector is used for TLB misses.
CHAPTER 2 V
Table 2-27. Comparison of useg and xuseg
Status Register Bit Value
EXL
ERL
UX
0
0
0
0
0
1
Preliminary User's Manual S15543EJ1V0UM
4120A
R
Segment
Address Range
Name
useg
0000_0000H
to
7FFF_FFFFH
xuseg
0000_0000_0000_0000H
to
0000_00FF_FFFF_FFFFH
Size
2 Gbytes
31
(2
bytes)
1 Tbyte
40
(2
bytes)
107

Advertisement

Table of Contents
loading

Table of Contents