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 --- 87 unchanged lines hidden (view full) --- 96 /** 97 * Updates the branch predictor with the actual result of a branch. 98 * @param branch_addr The address of the branch to update. 99 * @param taken Whether or not the branch was taken. 100 * @param bp_history Pointer to the BPHistory object that was created 101 * when the branch was predicted. 102 * @param squashed is set when this function is called during a squash 103 * operation. |
104 * @param inst Static instruction information 105 * @param corrTarget Resolved target of the branch (only needed if 106 * squashed) |
107 */ 108 void update(ThreadID tid, Addr branch_addr, bool taken, void *bp_history, |
109 bool squashed, const StaticInstPtr & inst, Addr corrTarget); |
110 111 /** 112 * Restores the global branch history on a squash. 113 * @param bp_history Pointer to the BPHistory object that has the 114 * previous global branch history in it. 115 */ 116 void squash(ThreadID tid, void *bp_history); 117 --- 130 unchanged lines hidden --- |