fetch.hh (2727:91e17c7ee622) | fetch.hh (2733:e0eac8fc5774) |
---|---|
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; --- 43 unchanged lines hidden (view full) --- 52template <class Impl> 53class DefaultFetch 54{ 55 public: 56 /** Typedefs from Impl. */ 57 typedef typename Impl::CPUPol CPUPol; 58 typedef typename Impl::DynInst DynInst; 59 typedef typename Impl::DynInstPtr DynInstPtr; | 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; --- 43 unchanged lines hidden (view full) --- 52template <class Impl> 53class DefaultFetch 54{ 55 public: 56 /** Typedefs from Impl. */ 57 typedef typename Impl::CPUPol CPUPol; 58 typedef typename Impl::DynInst DynInst; 59 typedef typename Impl::DynInstPtr DynInstPtr; |
60 typedef typename Impl::FullCPU FullCPU; | 60 typedef typename Impl::O3CPU O3CPU; |
61 typedef typename Impl::Params Params; 62 63 /** Typedefs from the CPU policy. */ 64 typedef typename CPUPol::BPredUnit BPredUnit; 65 typedef typename CPUPol::FetchStruct FetchStruct; 66 typedef typename CPUPol::TimeStruct TimeStruct; 67 68 /** Typedefs from ISA. */ --- 90 unchanged lines hidden (view full) --- 159 160 /** Returns the name of fetch. */ 161 std::string name() const; 162 163 /** Registers statistics. */ 164 void regStats(); 165 166 /** Sets CPU pointer. */ | 61 typedef typename Impl::Params Params; 62 63 /** Typedefs from the CPU policy. */ 64 typedef typename CPUPol::BPredUnit BPredUnit; 65 typedef typename CPUPol::FetchStruct FetchStruct; 66 typedef typename CPUPol::TimeStruct TimeStruct; 67 68 /** Typedefs from ISA. */ --- 90 unchanged lines hidden (view full) --- 159 160 /** Returns the name of fetch. */ 161 std::string name() const; 162 163 /** Registers statistics. */ 164 void regStats(); 165 166 /** Sets CPU pointer. */ |
167 void setCPU(FullCPU *cpu_ptr); | 167 void setCPU(O3CPU *cpu_ptr); |
168 169 /** Sets the main backwards communication time buffer pointer. */ 170 void setTimeBuffer(TimeBuffer<TimeStruct> *time_buffer); 171 172 /** Sets pointer to list of active threads. */ 173 void setActiveThreads(std::list<unsigned> *at_ptr); 174 175 /** Sets pointer to time buffer used to communicate to the next stage. */ --- 115 unchanged lines hidden (view full) --- 291 292 /** Returns the appropriate thread to fetch using the LSQ count policy. */ 293 int lsqCount(); 294 295 /** Returns the appropriate thread to fetch using the branch count policy. */ 296 int branchCount(); 297 298 private: | 168 169 /** Sets the main backwards communication time buffer pointer. */ 170 void setTimeBuffer(TimeBuffer<TimeStruct> *time_buffer); 171 172 /** Sets pointer to list of active threads. */ 173 void setActiveThreads(std::list<unsigned> *at_ptr); 174 175 /** Sets pointer to time buffer used to communicate to the next stage. */ --- 115 unchanged lines hidden (view full) --- 291 292 /** Returns the appropriate thread to fetch using the LSQ count policy. */ 293 int lsqCount(); 294 295 /** Returns the appropriate thread to fetch using the branch count policy. */ 296 int branchCount(); 297 298 private: |
299 /** Pointer to the FullCPU. */ 300 FullCPU *cpu; | 299 /** Pointer to the O3CPU. */ 300 O3CPU *cpu; |
301 302 /** Time buffer interface. */ 303 TimeBuffer<TimeStruct> *timeBuffer; 304 305 /** Wire to get decode's information from backwards time buffer. */ 306 typename TimeBuffer<TimeStruct>::wire fromDecode; 307 308 /** Wire to get rename's information from backwards time buffer. */ --- 148 unchanged lines hidden --- | 301 302 /** Time buffer interface. */ 303 TimeBuffer<TimeStruct> *timeBuffer; 304 305 /** Wire to get decode's information from backwards time buffer. */ 306 typename TimeBuffer<TimeStruct>::wire fromDecode; 307 308 /** Wire to get rename's information from backwards time buffer. */ --- 148 unchanged lines hidden --- |