decode.cc (13646:626670cc6da4) decode.cc (13965:347e04956cfe)
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

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

309 case Enums::Random:
310 priority_list = cpu.randomPriority();
311 break;
312 default:
313 panic("Unknown fetch policy");
314 }
315
316 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

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

309 case Enums::Random:
310 priority_list = cpu.randomPriority();
311 break;
312 default:
313 panic("Unknown fetch policy");
314 }
315
316 for (auto tid : priority_list) {
317 if (cpu.getContext(tid)->status() == ThreadContext::Active &&
318 getInput(tid) &&
319 !decodeInfo[tid].blocked) {
317 if (getInput(tid) && !decodeInfo[tid].blocked) {
320 threadPriority = tid;
321 return tid;
322 }
323 }
324
325 return InvalidThreadID;
326}
327

--- 26 unchanged lines hidden ---
318 threadPriority = tid;
319 return tid;
320 }
321 }
322
323 return InvalidThreadID;
324}
325

--- 26 unchanged lines hidden ---