123456789101112131415161718192021222324252627282930 |
- #ifndef BRANCH_TARGET_BUFFER_H
- #define BRANCH_TARGET_BUFFER_H
- #include "branch_predictor.h"
- class BranchTargetBuffer : BranchPredictor
- {
- bool predict(IntPtr ip, IntPtr target)
- {
- return false;
- }
- BranchPredictorReturnValue lookup(IntPtr ip, IntPtr target)
- {
- BranchPredictorReturnValue ret = { 0, 0, 0, BranchPredictorReturnValue::InvalidBranch };
- return ret;
- }
- void update(bool predicted, bool actual, IntPtr ip, IntPtr target)
- {
- }
- };
- #endif /* BRANCH_TARGET_BUFFER_H */
|