rename_impl.hh (2733:e0eac8fc5774) | rename_impl.hh (2843:19c4c6c2b5b1) |
---|---|
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; --- 244 unchanged lines hidden (view full) --- 253DefaultRename<Impl>::setScoreboard(Scoreboard *_scoreboard) 254{ 255 DPRINTF(Rename, "Setting scoreboard pointer.\n"); 256 scoreboard = _scoreboard; 257} 258 259template <class Impl> 260void | 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; --- 244 unchanged lines hidden (view full) --- 253DefaultRename<Impl>::setScoreboard(Scoreboard *_scoreboard) 254{ 255 DPRINTF(Rename, "Setting scoreboard pointer.\n"); 256 scoreboard = _scoreboard; 257} 258 259template <class Impl> 260void |
261DefaultRename<Impl>::switchOut() | 261DefaultRename<Impl>::drain() |
262{ 263 // Rename is ready to switch out at any time. | 262{ 263 // Rename is ready to switch out at any time. |
264 cpu->signalSwitched(); | 264 cpu->signalDrained(); |
265} 266 267template <class Impl> 268void | 265} 266 267template <class Impl> 268void |
269DefaultRename<Impl>::doSwitchOut() | 269DefaultRename<Impl>::switchOut() |
270{ 271 // Clear any state, fix up the rename map. 272 for (int i = 0; i < numThreads; i++) { 273 typename list<RenameHistory>::iterator hb_it = historyBuffer[i].begin(); 274 275 while (!historyBuffer[i].empty()) { 276 assert(hb_it != historyBuffer[i].end()); 277 --- 997 unchanged lines hidden --- | 270{ 271 // Clear any state, fix up the rename map. 272 for (int i = 0; i < numThreads; i++) { 273 typename list<RenameHistory>::iterator hb_it = historyBuffer[i].begin(); 274 275 while (!historyBuffer[i].empty()) { 276 assert(hb_it != historyBuffer[i].end()); 277 --- 997 unchanged lines hidden --- |