base_dyn_inst.hh (10319:4207f9bfcceb) | base_dyn_inst.hh (10417:710ee116eb68) |
---|---|
1/* 2 * Copyright (c) 2011,2013 ARM Limited 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 142 unchanged lines hidden (view full) --- 151 MaxFlags 152 }; 153 154 public: 155 /** The sequence number of the instruction. */ 156 InstSeqNum seqNum; 157 158 /** The StaticInst used by this BaseDynInst. */ | 1/* 2 * Copyright (c) 2011,2013 ARM Limited 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * All rights reserved. 5 * 6 * The license below extends only to copyright in the software and shall 7 * not be construed as granting a license to any other intellectual 8 * property including but not limited to intellectual property relating --- 142 unchanged lines hidden (view full) --- 151 MaxFlags 152 }; 153 154 public: 155 /** The sequence number of the instruction. */ 156 InstSeqNum seqNum; 157 158 /** The StaticInst used by this BaseDynInst. */ |
159 StaticInstPtr staticInst; | 159 const StaticInstPtr staticInst; |
160 161 /** Pointer to the Impl's CPU object. */ 162 ImplCPU *cpu; 163 164 BaseCPU *getCpuPtr() { return cpu; } 165 166 /** Pointer to the thread state. */ 167 ImplState *thread; --- 31 unchanged lines hidden (view full) --- 199 /** Iterator pointing to this BaseDynInst in the list of all insts. */ 200 ListIt instListIt; 201 202 ////////////////////// Branch Data /////////////// 203 /** Predicted PC state after this instruction. */ 204 TheISA::PCState predPC; 205 206 /** The Macroop if one exists */ | 160 161 /** Pointer to the Impl's CPU object. */ 162 ImplCPU *cpu; 163 164 BaseCPU *getCpuPtr() { return cpu; } 165 166 /** Pointer to the thread state. */ 167 ImplState *thread; --- 31 unchanged lines hidden (view full) --- 199 /** Iterator pointing to this BaseDynInst in the list of all insts. */ 200 ListIt instListIt; 201 202 ////////////////////// Branch Data /////////////// 203 /** Predicted PC state after this instruction. */ 204 TheISA::PCState predPC; 205 206 /** The Macroop if one exists */ |
207 StaticInstPtr macroop; | 207 const StaticInstPtr macroop; |
208 209 /** How many source registers are ready. */ 210 uint8_t readyRegs; 211 212 public: 213 /////////////////////// Load Store Data ////////////////////// 214 /** The effective virtual address (lds & stores only). */ 215 Addr effAddr; --- 206 unchanged lines hidden (view full) --- 422 } 423 /** BaseDynInst constructor given a binary instruction. 424 * @param staticInst A StaticInstPtr to the underlying instruction. 425 * @param pc The PC state for the instruction. 426 * @param predPC The predicted next PC state for the instruction. 427 * @param seq_num The sequence number of the instruction. 428 * @param cpu Pointer to the instruction's CPU. 429 */ | 208 209 /** How many source registers are ready. */ 210 uint8_t readyRegs; 211 212 public: 213 /////////////////////// Load Store Data ////////////////////// 214 /** The effective virtual address (lds & stores only). */ 215 Addr effAddr; --- 206 unchanged lines hidden (view full) --- 422 } 423 /** BaseDynInst constructor given a binary instruction. 424 * @param staticInst A StaticInstPtr to the underlying instruction. 425 * @param pc The PC state for the instruction. 426 * @param predPC The predicted next PC state for the instruction. 427 * @param seq_num The sequence number of the instruction. 428 * @param cpu Pointer to the instruction's CPU. 429 */ |
430 BaseDynInst(StaticInstPtr staticInst, StaticInstPtr macroop, | 430 BaseDynInst(const StaticInstPtr &staticInst, const StaticInstPtr ¯oop, |
431 TheISA::PCState pc, TheISA::PCState predPC, 432 InstSeqNum seq_num, ImplCPU *cpu); 433 434 /** BaseDynInst constructor given a StaticInst pointer. 435 * @param _staticInst The StaticInst for this BaseDynInst. 436 */ | 431 TheISA::PCState pc, TheISA::PCState predPC, 432 InstSeqNum seq_num, ImplCPU *cpu); 433 434 /** BaseDynInst constructor given a StaticInst pointer. 435 * @param _staticInst The StaticInst for this BaseDynInst. 436 */ |
437 BaseDynInst(StaticInstPtr staticInst, StaticInstPtr macroop); | 437 BaseDynInst(const StaticInstPtr &staticInst, const StaticInstPtr ¯oop); |
438 439 /** BaseDynInst destructor. */ 440 ~BaseDynInst(); 441 442 private: 443 /** Function to initialize variables in the constructors. */ 444 void initVars(); 445 --- 623 unchanged lines hidden --- | 438 439 /** BaseDynInst destructor. */ 440 ~BaseDynInst(); 441 442 private: 443 /** Function to initialize variables in the constructors. */ 444 void initVars(); 445 --- 623 unchanged lines hidden --- |