fetch.hh (12749:223c83ed9979) | fetch.hh (13429:a1e199fd8122) |
---|---|
1/* 2 * Copyright (c) 2010-2012, 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 --- 267 unchanged lines hidden (view full) --- 276 * Looks up in the branch predictor to see if the next PC should be 277 * either next PC+=MachInst or a branch target. 278 * @param next_PC Next PC variable passed in by reference. It is 279 * expected to be set to the current PC; it will be updated with what 280 * the next PC will be. 281 * @param next_NPC Used for ISAs which use delay slots. 282 * @return Whether or not a branch was predicted as taken. 283 */ | 1/* 2 * Copyright (c) 2010-2012, 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 --- 267 unchanged lines hidden (view full) --- 276 * Looks up in the branch predictor to see if the next PC should be 277 * either next PC+=MachInst or a branch target. 278 * @param next_PC Next PC variable passed in by reference. It is 279 * expected to be set to the current PC; it will be updated with what 280 * the next PC will be. 281 * @param next_NPC Used for ISAs which use delay slots. 282 * @return Whether or not a branch was predicted as taken. 283 */ |
284 bool lookupAndUpdateNextPC(DynInstPtr &inst, TheISA::PCState &pc); | 284 bool lookupAndUpdateNextPC(const DynInstPtr &inst, TheISA::PCState &pc); |
285 286 /** 287 * Fetches the cache line that contains the fetch PC. Returns any 288 * fault that happened. Puts the data into the class variable 289 * fetchBuffer, which may not hold the entire fetched cache line. 290 * @param vaddr The memory address that is being fetched from. 291 * @param ret_fault The fault reference that will be set to the result of 292 * the icache access. --- 286 unchanged lines hidden --- | 285 286 /** 287 * Fetches the cache line that contains the fetch PC. Returns any 288 * fault that happened. Puts the data into the class variable 289 * fetchBuffer, which may not hold the entire fetched cache line. 290 * @param vaddr The memory address that is being fetched from. 291 * @param ret_fault The fault reference that will be set to the result of 292 * the icache access. --- 286 unchanged lines hidden --- |