cpu.cc (8793:5f25086326ac) cpu.cc (8795:0909f8ed7aa0)
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * Copyright (c) 2011 Regents of the University of California
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

1634template <class Impl>
1635void
1636FullO3CPU<Impl>::updateThreadPriority()
1637{
1638 if (activeThreads.size() > 1) {
1639 //DEFAULT TO ROUND ROBIN SCHEME
1640 //e.g. Move highest priority to end of thread list
1641 list<ThreadID>::iterator list_begin = activeThreads.begin();
1/*
2 * Copyright (c) 2004-2006 The Regents of The University of Michigan
3 * Copyright (c) 2011 Regents of the University of California
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

1634template <class Impl>
1635void
1636FullO3CPU<Impl>::updateThreadPriority()
1637{
1638 if (activeThreads.size() > 1) {
1639 //DEFAULT TO ROUND ROBIN SCHEME
1640 //e.g. Move highest priority to end of thread list
1641 list<ThreadID>::iterator list_begin = activeThreads.begin();
1642 list<ThreadID>::iterator list_end = activeThreads.end();
1643
1644 unsigned high_thread = *list_begin;
1645
1646 activeThreads.erase(list_begin);
1647
1648 activeThreads.push_back(high_thread);
1649 }
1650}
1651
1652// Forward declaration of FullO3CPU.
1653template class FullO3CPU<O3CPUImpl>;
1642
1643 unsigned high_thread = *list_begin;
1644
1645 activeThreads.erase(list_begin);
1646
1647 activeThreads.push_back(high_thread);
1648 }
1649}
1650
1651// Forward declaration of FullO3CPU.
1652template class FullO3CPU<O3CPUImpl>;