bpred_unit.hh (10330:f54586c894e3) | bpred_unit.hh (10417:710ee116eb68) |
---|---|
1/* 2 * Copyright (c) 2011-2012, 2014 ARM Limited 3 * Copyright (c) 2010 The University of Edinburgh 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 73 unchanged lines hidden (view full) --- 82 /** 83 * Predicts whether or not the instruction is a taken branch, and the 84 * target of the branch if it is taken. 85 * @param inst The branch instruction. 86 * @param PC The predicted PC is passed back through this parameter. 87 * @param tid The thread id. 88 * @return Returns if the branch is taken or not. 89 */ | 1/* 2 * Copyright (c) 2011-2012, 2014 ARM Limited 3 * Copyright (c) 2010 The University of Edinburgh 4 * All rights reserved 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 73 unchanged lines hidden (view full) --- 82 /** 83 * Predicts whether or not the instruction is a taken branch, and the 84 * target of the branch if it is taken. 85 * @param inst The branch instruction. 86 * @param PC The predicted PC is passed back through this parameter. 87 * @param tid The thread id. 88 * @return Returns if the branch is taken or not. 89 */ |
90 bool predict(StaticInstPtr &inst, const InstSeqNum &seqNum, | 90 bool predict(const StaticInstPtr &inst, const InstSeqNum &seqNum, |
91 TheISA::PCState &pc, ThreadID tid); | 91 TheISA::PCState &pc, ThreadID tid); |
92 bool predictInOrder(StaticInstPtr &inst, const InstSeqNum &seqNum, | 92 bool predictInOrder(const StaticInstPtr &inst, const InstSeqNum &seqNum, |
93 int asid, TheISA::PCState &instPC, 94 TheISA::PCState &predPC, ThreadID tid); 95 96 // @todo: Rename this function. 97 virtual void uncondBranch(void * &bp_history) = 0; 98 99 /** 100 * Tells the branch predictor to commit any updates until the given --- 195 unchanged lines hidden --- | 93 int asid, TheISA::PCState &instPC, 94 TheISA::PCState &predPC, ThreadID tid); 95 96 // @todo: Rename this function. 97 virtual void uncondBranch(void * &bp_history) = 0; 98 99 /** 100 * Tells the branch predictor to commit any updates until the given --- 195 unchanged lines hidden --- |