![Intel ITANIUM ARCHITECTURE - SOFTWARE DEVELOPERS VOLUME 3 REV 2.3 Manual Download Page 386](http://html.mh-extra.com/html/intel/itanium-architecture-software-developers-volume-3-rev-2-3/itanium-architecture-software-developers-volume-3-rev-2-3_manual_2073404386.webp)
2:138
Volume 2, Part 1: Register Stack Engine
place at lower addresses, defined relative to BSP by the sizes of the clean and dirty
partitions. Although the stack is conceptually infinite in both directions, the effective
base of the stack is expected to be the first memory location of the first page allocated
to the backing store.
To allow the highest possible degree of concurrent execution, the processor and the
RSE operate independently of each other during normal program execution. The RSE
distinguishes between
mandatory
and
eager
load/store operations. Mandatory
load/store operations occur as the result of
alloc
,
flushrs
,
loadrs
,
br.ret
or
rfi
instructions. Eager operations occur when the RSE is speculatively working ahead of
program execution, and it is not known whether this register spill/fill is actually
required by the program.
When the RSE works in the background, it issues eager RSE spill and fill operations to
extend the size of the clean partition in both directions—by decreasing the RSE load
pointer and loading values from the backing store into invalid registers (eager RSE
load), and by saving dirty registers to the backing store and increasing the RSE store
pointer (eager RSE store). Allocation of a sufficiently large frame (using
alloc
) or
execution of a
flushrs
instruction may cause the RSE to suspend program execution
and issue mandatory RSE stores until the required number of registers have been
spilled to the backing store. Similarly a
br.ret
or
rfi
back to a sufficiently large frame
or execution of a
loadrs
instruction may cause the RSE to suspend program execution
and issue mandatory RSE loads until the required number of registers have been
restored from the backing store. The RSE only operates in the foreground and suspends
program execution whenever forward progress of the program actually requires
registers to be spilled or filled.
describes the RSE operation instructions and state modifications.
Table 6-2.
RSE Operation Instructions and State Modification
Affected State
Instruction
alloc
r
1
=
ar.pfs,
i,l,
o,r
a
a. These instructions have undefined behavior with an incomplete frame.
See “RSE Behavior with an Incomplete Register Frame”
br.ret
rfi
when CR[IFS].v = 1
AR[BSP]{63:3}
unchanged
AR[BSP]{63:3} + CFM.sol +
(AR[BSP]{8:3} + CFM.sol)/63
AR[BSP]{63:3} -
AR[PFS].pfm.sol -
(62-AR[BSP]{8:3}+
AR[PFS].pfm.sol)/63
AR[BSP]{63:3} -
CR[IFS].ifm.sof -
(62-AR[BSP]{8:3}+
CR[IFS].ifm.sof)/63
AR[PFS]
unchanged
AR[PFS].pfm = CFM
AR[PFS].pec = AR[EC]
AR[PFS].ppl = PSR.cpl
unchanged
unchanged
GR[
r
1
]
AR[PFS]
N/A
N/A
N/A
CFM
CFM.sof =
i+l+o
CFM.sol =
i+l
CFM.sor =
r
>> 3
CFM.sof -= CFM.sol
CFM.sol = 0
CFM.sor = 0
CFM.rrb.gr = 0
CFM.rrb.fr = 0
CFM.rrb.pr = 0
AR[PFS].pfm
or
b
CFM.sof = 0
CFM.sol = 0
CFM.sor = 0
CFM.rrb.gr = 0
CFM.rrb.fr = 0
CFM.rrb.pr = 0
b. Normal
br.ret
instructions restore CFM with AR[PFS].pfm. However, if a bad PFS value is read by the
br.ret
instruction, all
See “Bad PFS used by Branch Return” on page 2:143.
CR[IFS].ifm
Summary of Contents for ITANIUM ARCHITECTURE - SOFTWARE DEVELOPERS VOLUME 3 REV 2.3
Page 1: ......
Page 11: ...x Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 13: ...1 2 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 33: ...1 22 Volume 1 Part 1 Introduction to the Intel Itanium Architecture ...
Page 57: ...1 46 Volume 1 Part 1 Execution Environment ...
Page 147: ...1 136 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 149: ...1 138 Volume 1 Part 2 About the Optimization Guide ...
Page 191: ...1 180 Volume 1 Part 2 Predication Control Flow and Instruction Stream ...
Page 230: ......
Page 248: ...236 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 250: ...2 2 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 264: ...2 16 Volume 2 Part 1 Intel Itanium System Environment ...
Page 380: ...2 132 Volume 2 Part 1 Interruptions ...
Page 398: ...2 150 Volume 2 Part 1 Register Stack Engine ...
Page 486: ...2 238 Volume 2 Part 1 IA 32 Interruption Vector Descriptions ...
Page 750: ...2 502 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 754: ...2 506 Volume 2 Part 2 About the System Programmer s Guide ...
Page 796: ...2 548 Volume 2 Part 2 Interruptions and Serialization ...
Page 808: ...2 560 Volume 2 Part 2 Context Management ...
Page 842: ...2 594 Volume 2 Part 2 Floating point System Software ...
Page 850: ...2 602 Volume 2 Part 2 IA 32 Application Support ...
Page 862: ...2 614 Volume 2 Part 2 External Interrupt Architecture ...
Page 870: ...2 622 Volume 2 Part 2 Performance Monitoring Support ...
Page 891: ......
Page 1099: ...3 200 Volume 3 Instruction Reference padd Interruptions Illegal Operation fault ...
Page 1295: ...3 396 Volume 3 Resource and Dependency Semantics ...
Page 1296: ......
Page 1302: ...402 Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 1494: ...4 192 Volume 4 Base IA 32 Instruction Reference FWAIT Wait See entry for WAIT ...
Page 1647: ...Volume 4 Base IA 32 Instruction Reference 4 345 ROL ROR Rotate See entry for RCL RCR ROL ROR ...
Page 1884: ...4 582 Volume 4 IA 32 SSE Instruction Reference ...
Page 1885: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 Index ...
Page 1886: ...Index Intel Itanium Architecture Software Developer s Manual Rev 2 3 ...
Page 1898: ...INDEX Index 12 Index for Volumes 1 2 3 and 4 ...