|
14 | 14 | #include "cpu/pred/btb/folded_hist.hh" |
15 | 15 | #include "cpu/pred/btb/timed_base_pred.hh" |
16 | 16 |
|
| 17 | +// Conditional includes based on build mode |
17 | 18 | #ifdef UNIT_TEST |
18 | 19 | #include "cpu/pred/btb/test/test_dprintf.hh" |
19 | | - |
20 | 20 | #else |
21 | 21 | #include "debug/DecoupleBP.hh" |
22 | 22 | #include "debug/TAGEHistory.hh" |
23 | 23 | #include "debug/TAGEUseful.hh" |
24 | 24 | #include "params/BTBTAGE.hh" |
25 | 25 | #include "sim/sim_object.hh" |
26 | | - |
27 | 26 | #endif |
28 | 27 |
|
29 | 28 | namespace gem5 |
@@ -131,20 +130,8 @@ class BTBTAGE : public TimedBaseBTBPredictor |
131 | 130 | void putPCHistoryForBlock1(Addr startAddr, const boost::dynamic_bitset<> &history, |
132 | 131 | const boost::dynamic_bitset<> &phistory, const boost::dynamic_bitset<> &bwhistory, |
133 | 132 | const std::vector<boost::dynamic_bitset<>> &lhistory, |
134 | | - std::vector<FullBTBPrediction> &stagePreds, const FullBTBPrediction &lowerPred) override |
135 | | - { |
136 | | - (void)phistory; |
137 | | - (void)bwhistory; |
138 | | - (void)lhistory; |
139 | | - if (!participatesInBlock1()) { |
140 | | - for (int s = getDelay(); s < stagePreds.size(); s++) { |
141 | | - stagePreds[s].condTakens = lowerPred.condTakens; |
142 | | - stagePreds[s].tageInfoForMgscs = lowerPred.tageInfoForMgscs; |
143 | | - } |
144 | | - return; |
145 | | - } |
146 | | - putPCHistory(startAddr, history, stagePreds); |
147 | | - } |
| 133 | + std::vector<FullBTBPrediction> &stagePreds, |
| 134 | + const FullBTBPrediction &lowerPred) override; |
148 | 135 |
|
149 | 136 | std::shared_ptr<void> getPredictionMeta() override; |
150 | 137 |
|
|
0 commit comments