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