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 const StaticInstPtr & inst, Addr corrTarget) |
271{ 272 assert(bp_history); 273 274 BPHistory *history = static_cast<BPHistory *>(bp_history); 275 276 unsigned local_history_idx = calcLocHistIdx(branch_addr); 277 278 assert(local_history_idx < localHistoryTableSize); --- 100 unchanged lines hidden --- |