Deleted Added
sdiff udiff text old ( 13652:45d94ac03a27 ) new ( 13965:347e04956cfe )
full compact
1/*
2 * Copyright (c) 2013-2014,2016 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

--- 572 unchanged lines hidden (view full) ---

581 case Enums::Random:
582 priority_list = cpu.randomPriority();
583 break;
584 default:
585 panic("Unknown fetch policy");
586 }
587
588 for (auto tid : priority_list) {
589 if (getInput(tid) && !fetchInfo[tid].blocked) {
590 threadPriority = tid;
591 return tid;
592 }
593 }
594
595 return InvalidThreadID;
596}
597

--- 64 unchanged lines hidden ---