decode.cc (11567:560d7fbbddd1) | decode.cc (11568:91e95eb78191) |
---|---|
1/* 2 * Copyright (c) 2013-2014 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 --- 299 unchanged lines hidden (view full) --- 308 case Enums::Random: 309 priority_list = cpu.randomPriority(); 310 break; 311 default: 312 panic("Unknown fetch policy"); 313 } 314 315 for (auto tid : priority_list) { | 1/* 2 * Copyright (c) 2013-2014 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 --- 299 unchanged lines hidden (view full) --- 308 case Enums::Random: 309 priority_list = cpu.randomPriority(); 310 break; 311 default: 312 panic("Unknown fetch policy"); 313 } 314 315 for (auto tid : priority_list) { |
316 if (cpu.getContext(tid)->status() == ThreadContext::Active && 317 getInput(tid) && !decodeInfo[tid].blocked) { | 316 if (getInput(tid) && !decodeInfo[tid].blocked) { |
318 threadPriority = tid; 319 return tid; 320 } 321 } 322 323 return InvalidThreadID; 324} 325 --- 26 unchanged lines hidden --- | 317 threadPriority = tid; 318 return tid; 319 } 320 } 321 322 return InvalidThreadID; 323} 324 --- 26 unchanged lines hidden --- |