fetch2.cc (13632:483aaa00c69c) fetch2.cc (13646:626670cc6da4)
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

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

579 case Enums::Random:
580 priority_list = cpu.randomPriority();
581 break;
582 default:
583 panic("Unknown fetch policy");
584 }
585
586 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

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

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

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

--- 59 unchanged lines hidden ---