rob_impl.hh (13831:4fba790d88be) | rob_impl.hh (14016:265e8272c728) |
---|---|
1/* 2 * Copyright (c) 2012 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 --- 139 unchanged lines hidden (view full) --- 148 resetState(); 149} 150 151template <class Impl> 152void 153ROB<Impl>::resetEntries() 154{ 155 if (robPolicy != SMTQueuePolicy::Dynamic || numThreads > 1) { | 1/* 2 * Copyright (c) 2012 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 --- 139 unchanged lines hidden (view full) --- 148 resetState(); 149} 150 151template <class Impl> 152void 153ROB<Impl>::resetEntries() 154{ 155 if (robPolicy != SMTQueuePolicy::Dynamic || numThreads > 1) { |
156 int active_threads = activeThreads->size(); | 156 auto active_threads = activeThreads->size(); |
157 158 list<ThreadID>::iterator threads = activeThreads->begin(); 159 list<ThreadID>::iterator end = activeThreads->end(); 160 161 while (threads != end) { 162 ThreadID tid = *threads++; 163 164 if (robPolicy == SMTQueuePolicy::Partitioned) { --- 25 unchanged lines hidden (view full) --- 190 191 for (ThreadID tid = 0; tid < numThreads; tid++) 192 total += countInsts(tid); 193 194 return total; 195} 196 197template <class Impl> | 157 158 list<ThreadID>::iterator threads = activeThreads->begin(); 159 list<ThreadID>::iterator end = activeThreads->end(); 160 161 while (threads != end) { 162 ThreadID tid = *threads++; 163 164 if (robPolicy == SMTQueuePolicy::Partitioned) { --- 25 unchanged lines hidden (view full) --- 190 191 for (ThreadID tid = 0; tid < numThreads; tid++) 192 total += countInsts(tid); 193 194 return total; 195} 196 197template <class Impl> |
198int | 198size_t |
199ROB<Impl>::countInsts(ThreadID tid) 200{ 201 return instList[tid].size(); 202} 203 204template <class Impl> 205void 206ROB<Impl>::insertInst(const DynInstPtr &inst) --- 353 unchanged lines hidden --- | 199ROB<Impl>::countInsts(ThreadID tid) 200{ 201 return instList[tid].size(); 202} 203 204template <class Impl> 205void 206ROB<Impl>::insertInst(const DynInstPtr &inst) --- 353 unchanged lines hidden --- |