rename_impl.hh (9046:a1104cc13db2) | rename_impl.hh (9427:ddf45c1d54d4) |
---|---|
1/* 2 * Copyright (c) 2010 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 --- 214 unchanged lines hidden (view full) --- 223 decodeQueue = dq_ptr; 224 225 // Setup wire to get information from decode. 226 fromDecode = decodeQueue->getWire(-decodeToRenameDelay); 227} 228 229template <class Impl> 230void | 1/* 2 * Copyright (c) 2010 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 --- 214 unchanged lines hidden (view full) --- 223 decodeQueue = dq_ptr; 224 225 // Setup wire to get information from decode. 226 fromDecode = decodeQueue->getWire(-decodeToRenameDelay); 227} 228 229template <class Impl> 230void |
231DefaultRename<Impl>::initStage() | 231DefaultRename<Impl>::startupStage() |
232{ 233 // Grab the number of free entries directly from the stages. 234 for (ThreadID tid = 0; tid < numThreads; tid++) { 235 freeEntries[tid].iqEntries = iew_ptr->instQueue.numFreeEntries(tid); 236 freeEntries[tid].lsqEntries = iew_ptr->ldstQueue.numFreeEntries(tid); 237 freeEntries[tid].robEntries = commit_ptr->numROBFreeEntries(tid); 238 emptyROB[tid] = true; 239 } --- 72 unchanged lines hidden (view full) --- 312 } 313} 314 315template <class Impl> 316void 317DefaultRename<Impl>::takeOverFrom() 318{ 319 _status = Inactive; | 232{ 233 // Grab the number of free entries directly from the stages. 234 for (ThreadID tid = 0; tid < numThreads; tid++) { 235 freeEntries[tid].iqEntries = iew_ptr->instQueue.numFreeEntries(tid); 236 freeEntries[tid].lsqEntries = iew_ptr->ldstQueue.numFreeEntries(tid); 237 freeEntries[tid].robEntries = commit_ptr->numROBFreeEntries(tid); 238 emptyROB[tid] = true; 239 } --- 72 unchanged lines hidden (view full) --- 312 } 313} 314 315template <class Impl> 316void 317DefaultRename<Impl>::takeOverFrom() 318{ 319 _status = Inactive; |
320 initStage(); | 320 startupStage(); |
321 322 // Reset all state prior to taking over from the other CPU. 323 for (ThreadID tid = 0; tid < numThreads; tid++) { 324 renameStatus[tid] = Idle; 325 326 stalls[tid].iew = false; 327 stalls[tid].commit = false; 328 serializeInst[tid] = NULL; --- 1065 unchanged lines hidden --- | 321 322 // Reset all state prior to taking over from the other CPU. 323 for (ThreadID tid = 0; tid < numThreads; tid++) { 324 renameStatus[tid] = Idle; 325 326 stalls[tid].iew = false; 327 stalls[tid].commit = false; 328 serializeInst[tid] = NULL; --- 1065 unchanged lines hidden --- |