fetch2.cc (13652:45d94ac03a27) fetch2.cc (13965:347e04956cfe)
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) {
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 (cpu.getContext(tid)->status() == ThreadContext::Active &&
590 getInput(tid) &&
591 !fetchInfo[tid].blocked) {
589 if (getInput(tid) && !fetchInfo[tid].blocked) {
592 threadPriority = tid;
593 return tid;
594 }
595 }
596
597 return InvalidThreadID;
598}
599

--- 64 unchanged lines hidden ---
590 threadPriority = tid;
591 return tid;
592 }
593 }
594
595 return InvalidThreadID;
596}
597

--- 64 unchanged lines hidden ---