Integer Scheduler
Integer Execution Unit
Floating-Point Scheduler
Floating-Point Execution Unit
12 to
Load-Store Unit LSU
Load/Store Unit
L2 Cache Controller
Write Combining
AMD Athlon System Bus
140 AMD Athlon Processor Microarchitecture
Pipeline and Execution Unit Resources Overview
Fetch and Decode Pipeline Stages
C T L R O M
Cycle 3 DirectPath
Cycle 1-FETCH
Cycle 2-SCAN
Cycle 3 VectorPath
Integer Pipeline Stages
Integer Pipeline Stages
Cycle 9-ADDGEN
Cycle 7-SCHED
Cycle 8-EXEC
Cycle 10 -DCACC
Floating-Point Pipeline Stages
Floating-Point Pipeline Stages
Cycle 9-SCHEDW
Cycle 7-STKREN
Cycle 8-REGREN
Cycle 10 -SCHED
Operands
Execution Unit Resources
Terminology
Results
Integer Pipeline Operations
Integer Pipeline Operation Types
Integer Decode Types
Floating-Point Pipeline Operations
Floating-Point Pipeline Operation Types
Floating-Point Decode Types
Load/Store Pipeline Operations
Load/Store Unit Stages
Stage 1 Cycle Stage 2 Cycle Stage 3 Cycle
Code Sample Analysis
Imul EAX, ECX INC ESI MOV
ADD EDI, EBX SHL
INC EBX ADD ESI, EDX
Sample 2 Integer Register and Memory Load Operations
DEC EDX MOV EDI, ECX SUB
SAR
Appendix C
Implementation Write Combining
What is Write Combining?
Write-Combining Definitions and Abbreviations
Programming Details
Write-Combining Operations
Write Combining Completion Events
INIT, Halt
AMD Athlon System Bus Commands Generation Rules
Sending Write-Buffer Data to the System
160 Write-Combining Operations
Performance-Monitoring Counters
Performance Counter Usage
PerfEvtSel30 MSRs MSR Addresses C0010000h-C0010003h
PerfEvtSel30 Registers
Performance Counter Usage 163
Performance-Monitoring Counters
Snoop hits
65h
73h
74h
Instruction cache fetches
Event Source Event Description
Waited to use the L2
Instruction cache misses
PerfCtr30 MSRs MSR Addresses C0010004h-C0010007h
Event and Time-Stamp Monitoring Software
Starting and Stopping the Performance-Monitoring Counters
Monitoring Counter Overflow
170 Monitoring Counter Overflow
Programming the Mtrr
Memory Type Range Register Mtrr Mechanism
172 Memory Type Range Register Mtrr Mechanism
Fixed Ranges
FFFFFFFFh
100000h Kbytes each Fixed Ranges C0000h 80000h
Mtrr Capability
Memory Types
Memory Type Encodings
Register Format
Memory Type Range Register Mtrr Mechanism 175
Standard Mtrr Types and Properties
Attribute Table PAT
Attribute Table MSR 277h
MTRRs and PAT
PAT Entry Reset Value
PATi 3-Bit Encodings
PATi
Effective Memory Type Based on PAT and MTRRs
PAT Memory Type Mtrr Memory Type
Final Output Memory Types
Input Memory Type
Attribute Table PAT 181
Bffff Bbfff B7FFF B3FFF Affff Abfff A7FFF A3FFF
7FFFF 6FFFF 5FFFF 4FFFF 3FFFF 2FFFF 1FFFF 0FFFF
9FFFF 9BFFF 97FFF 93FFF 8FFFF 8BFFF 87FFF 83FFF
C7FFF C6FFF C5FFF C4FFF C3FFF C2FFF C1FFF C0FFF
Attribute Table PAT 183
MTRRphysMaskn Register Format
MTRR-Related Model-Specific Register MSR Map
186
Appendix F
Instruction Dispatch Execution Resources
AAD
Integer Instructions
AAA
AAM
ADC mem8, reg8
ModR/M Decode Byte
ADC mreg8, reg8
ADC mreg16/32, reg16/32
Bswap ECX
Bound
Bswap EAX
Bswap EDX
CLD
CBW/CWDE
CLC
CLI
CMOVG/CMOVNLE reg16/32, reg16/32 0Fh
CMOVE/CMOVZ reg16/32, reg16/32 0Fh
CMOVE/CMOVZ reg16/32, mem16/32 0Fh
CMOVG/CMOVNLE reg16/32, mem16/32 0Fh
DAA
Cpuid
CWD/CDQ
DAS
AX, DX
Enter
AL, DX
EAX, DX
Invd
Invlpg
Lahf
Leave
LSL reg16/32, mreg16/32 0Fh 03h
LOOPE/LOOPZ disp8 E1h
LOOPNE/LOOPNZ disp8 E0h
LSL reg16/32, mem16/32 0Fh 03h
NOP Xchg EAX, EAX
OUT DX, EAX
OUT DX, AL
OUT DX, AX
POP ES
POP EBP
POP EBX
POP ESP
POP ESI
Rdmsr
Rdpmc
Rdtsc
Sahf
SBB reg8, mreg8
SBB mreg16/32, reg16/32
SBB mem16/32, reg16/32
SBB reg8, mem8
Setns mreg8
Sets mreg8
Sets mem8
Setns mem8
STC
STD
STI
Sysexit
Syscall
Sysenter
Sysret
Xchg EAX, EDX
Xchg EAX, EAX
Xchg EAX, ECX
Xchg EAX, EBX
MMX Instructions
Emms
Pandn mmreg, mem64
Pandn mmreg1, mmreg2
DFh
Pcmpeqb mmreg1, mmreg2
FADD/FMUL
MMX Extensions
FPU
Floating-Point Instructions
Fcompp
Fcos
Fdecstp
Fincstp
Finit
FLD1
FLDLG2
FLDL2E
FLDL2T
FLDLN2
Fucom
Fstsw AX
Ftst
Fucomp
DNow! Instructions
Femms
DNow! Extensions
DirectPath versus VectorPath Instructions
DirectPath Instructions
DirectPath Integer Instructions
BT mreg16/32, reg16/32 BT mreg16/32, imm8 BT mem16/32, imm8
CBW/CWDE CLC CMC
DEC mreg8 DEC mem8 DEC mreg16/32 DEC mem16/32
INC mreg8 INC mem8 INC mreg16/32 INC mem16/32 JO short disp8
222 DirectPath Instructions
DirectPath Instructions 223
224 DirectPath Instructions
Wait Xchg EAX, EAX
226 DirectPath Instructions
DirectPath MMX Instructions
DirectPath MMX Extensions
Fist mem16int
DirectPath Floating-Point Instructions
Fcompp Fdecstp
FLD1 FLDL2E FLDL2T FLDLG2 FLDLN2 Fldpi Fldz
Ftst Fucom Fucomp Fucompp Fwait Fxch
AAA AAD AAM AAS
VectorPath Instructions
VectorPath Integer Instructions
CLD CLI Clts
Instruction Mnemonic DIV EAX, mem16/32
AL, DX AX, DX EAX, DX Invd Invlpg
PUSHA/PUSHAD PUSHF/PUSHFD
POP mreg 16/32 POP mem 16/32
Push mreg16/32 Push mem16/32
Rdmsr Rdpmc Rdtsc
Syscall Sysenter Sysexit Sysret
VectorPath MMX Instructions
VectorPath MMX Extensions
Wbinvd Wrmsr
Fscale Fsin Fsincos
VectorPath Floating-Point Instructions
Fptan Fpatan Frndint
Fxam Fxtract FYL2X FYL2XP1
236
Index
238 Index
Index 239
240 Index