fetch.hh (4302:c45514c856b0) | fetch.hh (4329:52057dbec096) |
---|---|
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; --- 146 unchanged lines hidden (view full) --- 155 /** Fetch policy. */ 156 FetchPriority fetchPolicy; 157 158 /** List that has the threads organized by priority. */ 159 std::list<unsigned> priorityList; 160 161 public: 162 /** DefaultFetch constructor. */ | 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; --- 146 unchanged lines hidden (view full) --- 155 /** Fetch policy. */ 156 FetchPriority fetchPolicy; 157 158 /** List that has the threads organized by priority. */ 159 std::list<unsigned> priorityList; 160 161 public: 162 /** DefaultFetch constructor. */ |
163 DefaultFetch(Params *params); | 163 DefaultFetch(O3CPU *_cpu, Params *params); |
164 165 /** Returns the name of fetch. */ 166 std::string name() const; 167 168 /** Registers statistics. */ 169 void regStats(); 170 171 /** Returns the icache port. */ 172 Port *getIcachePort() { return icachePort; } 173 | 164 165 /** Returns the name of fetch. */ 166 std::string name() const; 167 168 /** Registers statistics. */ 169 void regStats(); 170 171 /** Returns the icache port. */ 172 Port *getIcachePort() { return icachePort; } 173 |
174 /** Sets CPU pointer. */ 175 void setCPU(O3CPU *cpu_ptr); 176 | |
177 /** Sets the main backwards communication time buffer pointer. */ 178 void setTimeBuffer(TimeBuffer<TimeStruct> *time_buffer); 179 180 /** Sets pointer to list of active threads. */ 181 void setActiveThreads(std::list<unsigned> *at_ptr); 182 183 /** Sets pointer to time buffer used to communicate to the next stage. */ 184 void setFetchQueue(TimeBuffer<FetchStruct> *fq_ptr); --- 306 unchanged lines hidden --- | 174 /** Sets the main backwards communication time buffer pointer. */ 175 void setTimeBuffer(TimeBuffer<TimeStruct> *time_buffer); 176 177 /** Sets pointer to list of active threads. */ 178 void setActiveThreads(std::list<unsigned> *at_ptr); 179 180 /** Sets pointer to time buffer used to communicate to the next stage. */ 181 void setFetchQueue(TimeBuffer<FetchStruct> *fq_ptr); --- 306 unchanged lines hidden --- |