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
--- 252 unchanged lines hidden (view full) ---
261 history->localHistory = invalidPredictorIndex;
262 bp_history = static_cast<void *>(history);
263
264 updateGlobalHistTaken(tid);
265}
266
267void
268TournamentBP::update(ThreadID tid, Addr branch_addr, bool taken,
269 void *bp_history, bool squashed)
270{
271 assert(bp_history);
272
273 BPHistory *history = static_cast<BPHistory *>(bp_history);
274
275 unsigned local_history_idx = calcLocHistIdx(branch_addr);
276
277 assert(local_history_idx < localHistoryTableSize);
--- 100 unchanged lines hidden ---
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
--- 252 unchanged lines hidden (view full) ---
261 history->localHistory = invalidPredictorIndex;
262 bp_history = static_cast<void *>(history);
263
264 updateGlobalHistTaken(tid);
265}
266
267void
268TournamentBP::update(ThreadID tid, Addr branch_addr, bool taken,
269 void *bp_history, bool squashed)
270{
271 assert(bp_history);
272
273 BPHistory *history = static_cast<BPHistory *>(bp_history);
274
275 unsigned local_history_idx = calcLocHistIdx(branch_addr);
276
277 assert(local_history_idx < localHistoryTableSize);
--- 100 unchanged lines hidden ---