Integer Scheduler
Integer Execution Unit
Floating-Point Scheduler
Floating-Point Execution Unit
12 to
Load-Store Unit LSU
Load/Store Unit
Write Combining
L2 Cache Controller
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 1-FETCH
Cycle 2-SCAN
Cycle 3 DirectPath
Cycle 3 VectorPath
Integer Pipeline Stages
Integer Pipeline Stages
Cycle 7-SCHED
Cycle 8-EXEC
Cycle 9-ADDGEN
Cycle 10 -DCACC
Floating-Point Pipeline Stages
Floating-Point Pipeline Stages
Cycle 7-STKREN
Cycle 8-REGREN
Cycle 9-SCHEDW
Cycle 10 -SCHED
Execution Unit Resources
Terminology
Operands
Results
Integer Pipeline Operation Types
Integer Pipeline Operations
Integer Decode Types
Floating-Point Pipeline Operation Types
Floating-Point Pipeline Operations
Floating-Point Decode Types
Load/Store Unit Stages
Load/Store Pipeline Operations
Stage 1 Cycle Stage 2 Cycle Stage 3 Cycle
Code Sample Analysis
ADD EDI, EBX SHL
Imul EAX, ECX INC ESI MOV
INC EBX ADD ESI, EDX
DEC EDX MOV EDI, ECX SUB
Sample 2 Integer Register and Memory Load Operations
SAR
Appendix C
Implementation Write Combining
Write-Combining Definitions and Abbreviations
What is Write Combining?
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
65h
73h
Snoop hits
74h
Event Source Event Description
Waited to use the L2
Instruction cache fetches
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
FFFFFFFFh
Fixed Ranges
100000h Kbytes each Fixed Ranges C0000h 80000h
Memory Types
Memory Type Encodings
Mtrr Capability
Register Format
Memory Type Range Register Mtrr Mechanism 175
Standard Mtrr Types and Properties
Attribute Table PAT
Attribute Table MSR 277h
PAT Entry Reset Value
PATi 3-Bit Encodings
MTRRs and PAT
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
7FFFF 6FFFF 5FFFF 4FFFF 3FFFF 2FFFF 1FFFF 0FFFF
9FFFF 9BFFF 97FFF 93FFF 8FFFF 8BFFF 87FFF 83FFF
Bffff Bbfff B7FFF B3FFF Affff Abfff A7FFF A3FFF
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
Integer Instructions
AAA
AAD
AAM
ModR/M Decode Byte
ADC mreg8, reg8
ADC mem8, reg8
ADC mreg16/32, reg16/32
Bound
Bswap EAX
Bswap ECX
Bswap EDX
CBW/CWDE
CLC
CLD
CLI
CMOVE/CMOVZ reg16/32, reg16/32 0Fh
CMOVE/CMOVZ reg16/32, mem16/32 0Fh
CMOVG/CMOVNLE reg16/32, reg16/32 0Fh
CMOVG/CMOVNLE reg16/32, mem16/32 0Fh
Cpuid
CWD/CDQ
DAA
DAS
Enter
AL, DX
AX, DX
EAX, DX
Invd
Invlpg
Lahf
Leave
LOOPE/LOOPZ disp8 E1h
LOOPNE/LOOPNZ disp8 E0h
LSL reg16/32, mreg16/32 0Fh 03h
LSL reg16/32, mem16/32 0Fh 03h
NOP Xchg EAX, EAX
OUT DX, AL
OUT DX, AX
OUT DX, EAX
POP ES
POP EBX
POP ESP
POP EBP
POP ESI
Rdpmc
Rdmsr
Rdtsc
Sahf
SBB mreg16/32, reg16/32
SBB mem16/32, reg16/32
SBB reg8, mreg8
SBB reg8, mem8
Sets mreg8
Sets mem8
Setns mreg8
Setns mem8
STD
STC
STI
Syscall
Sysenter
Sysexit
Sysret
Xchg EAX, EAX
Xchg EAX, ECX
Xchg EAX, EDX
Xchg EAX, EBX
MMX Instructions
Emms
Pandn mmreg1, mmreg2
DFh
Pandn mmreg, mem64
Pcmpeqb mmreg1, mmreg2
FADD/FMUL
MMX Extensions
FPU
Floating-Point Instructions
Fcos
Fcompp
Fdecstp
Finit
Fincstp
FLD1
FLDL2E
FLDL2T
FLDLG2
FLDLN2
Fstsw AX
Ftst
Fucom
Fucomp
DNow! Instructions
Femms
DNow! Extensions
DirectPath versus VectorPath Instructions
DirectPath Instructions
BT mreg16/32, reg16/32 BT mreg16/32, imm8 BT mem16/32, imm8
DirectPath Integer Instructions
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
DirectPath Floating-Point Instructions
Fcompp Fdecstp
Fist mem16int
FLD1 FLDL2E FLDL2T FLDLG2 FLDLN2 Fldpi Fldz
Ftst Fucom Fucomp Fucompp Fwait Fxch
VectorPath Instructions
VectorPath Integer Instructions
AAA AAD AAM AAS
CLD CLI Clts
Instruction Mnemonic DIV EAX, mem16/32
AL, DX AX, DX EAX, DX Invd Invlpg
POP mreg 16/32 POP mem 16/32
Push mreg16/32 Push mem16/32
PUSHA/PUSHAD PUSHF/PUSHFD
Rdmsr Rdpmc Rdtsc
VectorPath MMX Instructions
VectorPath MMX Extensions
Syscall Sysenter Sysexit Sysret
Wbinvd Wrmsr