2bit_local.hh (6226:f1076450ab2b) | 2bit_local.hh (8842:a02932e2e73d) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2011 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 9 * licensed hereunder. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated 11 * unmodified and in its entirety in all distributions of the software, 12 * modified or unmodified, in source code or in binary form. 13 * |
|
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions are 7 * met: redistributions of source code must retain the above copyright 8 * notice, this list of conditions and the following disclaimer; 9 * redistributions in binary form must reproduce the above copyright --- 50 unchanged lines hidden (view full) --- 60 * a true/false value as to whether it is taken. 61 * @param branch_addr The address of the branch to look up. 62 * @param bp_history Pointer to any bp history state. 63 * @return Whether or not the branch is taken. 64 */ 65 bool lookup(Addr &branch_addr, void * &bp_history); 66 67 /** | 14 * Copyright (c) 2004-2006 The Regents of The University of Michigan 15 * All rights reserved. 16 * 17 * Redistribution and use in source and binary forms, with or without 18 * modification, are permitted provided that the following conditions are 19 * met: redistributions of source code must retain the above copyright 20 * notice, this list of conditions and the following disclaimer; 21 * redistributions in binary form must reproduce the above copyright --- 50 unchanged lines hidden (view full) --- 72 * a true/false value as to whether it is taken. 73 * @param branch_addr The address of the branch to look up. 74 * @param bp_history Pointer to any bp history state. 75 * @return Whether or not the branch is taken. 76 */ 77 bool lookup(Addr &branch_addr, void * &bp_history); 78 79 /** |
80 * Updates the branch predictor to Not Taken if a BTB entry is 81 * invalid or not found. 82 * @param branch_addr The address of the branch to look up. 83 * @param bp_history Pointer to any bp history state. 84 * @return Whether or not the branch is taken. 85 */ 86 void BTBUpdate(Addr &branch_addr, void * &bp_history); 87 88 /** |
|
68 * Updates the branch predictor with the actual result of a branch. 69 * @param branch_addr The address of the branch to update. 70 * @param taken Whether or not the branch was taken. 71 */ 72 void update(Addr &branch_addr, bool taken, void *bp_history); 73 74 void squash(void *bp_history) 75 { assert(bp_history == NULL); } --- 35 unchanged lines hidden --- | 89 * Updates the branch predictor with the actual result of a branch. 90 * @param branch_addr The address of the branch to update. 91 * @param taken Whether or not the branch was taken. 92 */ 93 void update(Addr &branch_addr, bool taken, void *bp_history); 94 95 void squash(void *bp_history) 96 { assert(bp_history == NULL); } --- 35 unchanged lines hidden --- |