tournament.cc (11434:b5aed9d2d54e) tournament.cc (11782:c2e1ead33662)
1/*
2 * Copyright (c) 2011, 2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 208 unchanged lines hidden (view full) ---

217 history->globalPredTaken = global_prediction;
218 history->globalUsed = choice_prediction;
219 history->localHistoryIdx = local_history_idx;
220 history->localHistory = local_predictor_idx;
221 bp_history = (void *)history;
222
223 assert(local_history_idx < localHistoryTableSize);
224
1/*
2 * Copyright (c) 2011, 2014 ARM Limited
3 * All rights reserved
4 *
5 * The license below extends only to copyright in the software and shall
6 * not be construed as granting a license to any other intellectual
7 * property including but not limited to intellectual property relating
8 * to a hardware implementation of the functionality of the software

--- 208 unchanged lines hidden (view full) ---

217 history->globalPredTaken = global_prediction;
218 history->globalUsed = choice_prediction;
219 history->localHistoryIdx = local_history_idx;
220 history->localHistory = local_predictor_idx;
221 bp_history = (void *)history;
222
223 assert(local_history_idx < localHistoryTableSize);
224
225 // Commented code is for doing speculative update of counters and
226 // all histories.
225 // Speculative update of the global history and the
226 // selected local history.
227 if (choice_prediction) {
228 if (global_prediction) {
229 updateGlobalHistTaken(tid);
230 updateLocalHistTaken(local_history_idx);
231 return true;
232 } else {
233 updateGlobalHistNotTaken(tid);
234 updateLocalHistNotTaken(local_history_idx);

--- 165 unchanged lines hidden ---
227 if (choice_prediction) {
228 if (global_prediction) {
229 updateGlobalHistTaken(tid);
230 updateLocalHistTaken(local_history_idx);
231 return true;
232 } else {
233 updateGlobalHistNotTaken(tid);
234 updateLocalHistNotTaken(local_history_idx);

--- 165 unchanged lines hidden ---