2bit_local.cc (8232:b28d06a175be) | 2bit_local.cc (8842:a02932e2e73d) |
---|---|
1/* 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; --- 65 unchanged lines hidden (view full) --- 74void 75LocalBP::reset() 76{ 77 for (unsigned i = 0; i < localPredictorSets; ++i) { 78 localCtrs[i].reset(); 79 } 80} 81 | 1/* 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; --- 65 unchanged lines hidden (view full) --- 74void 75LocalBP::reset() 76{ 77 for (unsigned i = 0; i < localPredictorSets; ++i) { 78 localCtrs[i].reset(); 79 } 80} 81 |
82void 83LocalBP::BTBUpdate(Addr &branch_addr, void * &bp_history) 84{ 85// Place holder for a function that is called to update predictor history when 86// a BTB entry is invalid or not found. 87} 88 89 |
|
82bool 83LocalBP::lookup(Addr &branch_addr, void * &bp_history) 84{ 85 bool taken; 86 uint8_t counter_val; 87 unsigned local_predictor_idx = getLocalIndex(branch_addr); 88 89 DPRINTF(Fetch, "Branch predictor: Looking up index %#x\n", --- 58 unchanged lines hidden --- | 90bool 91LocalBP::lookup(Addr &branch_addr, void * &bp_history) 92{ 93 bool taken; 94 uint8_t counter_val; 95 unsigned local_predictor_idx = getLocalIndex(branch_addr); 96 97 DPRINTF(Fetch, "Branch predictor: Looking up index %#x\n", --- 58 unchanged lines hidden --- |