该文章内容主要基于
《Effective Hardware-Based Data Prefetching for High-Performance Processors》
Tien-Fu Chen, Member, IEEE, and Jean-Loup Baer, Fellow, IEEE
IEEE TRANSACTIONS ON COMPUTERS, VOL. 44, NO. 5, MAY 1995
文章中描述了三种常用的数据预取器
- Basic Reference Prediction
- Lookahead Reference Prediction
- Correlated Reference Prediction
1. Basic Reference Prediction (RPT)
tag:对应Load/Store的地址tag
prev_addr:the last (operand) address that was referenced when the PC reached that instruction. (PC到达时引用的最后一个(操作数)地址)
stride:当前地址addr和prev_addr的差
state:2 bit状态机:
1. initial
2. transient:不确定之前预测是否正确
3. steady&