btb.h 524 B

123456789101112131415161718192021222324252627282930
  1. #ifndef BRANCH_TARGET_BUFFER_H
  2. #define BRANCH_TARGET_BUFFER_H
  3. #include "branch_predictor.h"
  4. class BranchTargetBuffer : BranchPredictor
  5. {
  6. bool predict(IntPtr ip, IntPtr target)
  7. {
  8. return false;
  9. }
  10. BranchPredictorReturnValue lookup(IntPtr ip, IntPtr target)
  11. {
  12. BranchPredictorReturnValue ret = { 0, 0, 0, BranchPredictorReturnValue::InvalidBranch };
  13. return ret;
  14. }
  15. void update(bool predicted, bool actual, IntPtr ip, IntPtr target)
  16. {
  17. }
  18. };
  19. #endif /* BRANCH_TARGET_BUFFER_H */