fetch2.hh (12324:6142a2fec8d9) | fetch2.hh (13632:483aaa00c69c) |
---|---|
1/* 2 * Copyright (c) 2013-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 --- 158 unchanged lines hidden (view full) --- 167 168 /** Stats */ 169 Stats::Scalar intInstructions; 170 Stats::Scalar fpInstructions; 171 Stats::Scalar vecInstructions; 172 Stats::Scalar loadInstructions; 173 Stats::Scalar storeInstructions; 174 | 1/* 2 * Copyright (c) 2013-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 --- 158 unchanged lines hidden (view full) --- 167 168 /** Stats */ 169 Stats::Scalar intInstructions; 170 Stats::Scalar fpInstructions; 171 Stats::Scalar vecInstructions; 172 Stats::Scalar loadInstructions; 173 Stats::Scalar storeInstructions; 174 |
175 public: 176 /** Dump the whole contents of the input buffer. Useful after a 177 * prediction changes control flow */ 178 void dumpAllInput(ThreadID tid); 179 |
|
175 protected: 176 /** Get a piece of data to work on from the inputBuffer, or 0 if there 177 * is no data. */ 178 const ForwardLineData *getInput(ThreadID tid); 179 180 /** Pop an element off the input buffer, if there are any */ 181 void popInput(ThreadID tid); 182 | 180 protected: 181 /** Get a piece of data to work on from the inputBuffer, or 0 if there 182 * is no data. */ 183 const ForwardLineData *getInput(ThreadID tid); 184 185 /** Pop an element off the input buffer, if there are any */ 186 void popInput(ThreadID tid); 187 |
183 /** Dump the whole contents of the input buffer. Useful after a 184 * prediction changes control flow */ 185 void dumpAllInput(ThreadID tid); 186 | |
187 /** Update local branch prediction structures from feedback from 188 * Execute. */ 189 void updateBranchPrediction(const BranchData &branch); 190 191 /** Predicts branches for the given instruction. Updates the 192 * instruction's predicted... fields and also the branch which 193 * carries the prediction to Fetch1 */ 194 void predictBranch(MinorDynInstPtr inst, BranchData &branch); --- 32 unchanged lines hidden --- | 188 /** Update local branch prediction structures from feedback from 189 * Execute. */ 190 void updateBranchPrediction(const BranchData &branch); 191 192 /** Predicts branches for the given instruction. Updates the 193 * instruction's predicted... fields and also the branch which 194 * carries the prediction to Fetch1 */ 195 void predictBranch(MinorDynInstPtr inst, BranchData &branch); --- 32 unchanged lines hidden --- |