|
gem5 [DEVELOP-FOR-25.0]
|
#include <system.hh>
Classes | |
| class | const_iterator |
| struct | Thread |
Public Member Functions | |
| ThreadContext * | findFree () |
| ThreadContext * | operator[] (ContextID id) const |
| void | markActive (ContextID id) |
| int | size () const |
| bool | empty () const |
| int | numRunning () const |
| int | numActive () const |
| void | quiesce (ContextID id) |
| void | quiesceTick (ContextID id, Tick when) |
| const_iterator | begin () const |
| const_iterator | end () const |
Private Member Functions | |
| Thread & | thread (ContextID id) |
| const Thread & | thread (ContextID id) const |
| void | insert (ThreadContext *tc) |
| void | replace (ThreadContext *tc, ContextID id) |
Private Attributes | |
| std::vector< Thread > | threads |
Friends | |
| class | System |
|
inline |
|
inline |
|
inline |
| ThreadContext * gem5::System::Threads::findFree | ( | ) |
Definition at line 121 of file system.cc.
References gem5::ThreadContext::Halted, thread(), and threads.
Referenced by gem5::doClone().
|
private |
Definition at line 93 of file system.cc.
References gem5::ThreadContext::getSystemPtr(), gem5::Named::name(), gem5::System::Threads::Thread::resume(), gem5::ThreadContext::setContextId(), size(), gem5::ArmISA::t, thread(), and threads.
|
inline |
Definition at line 213 of file system.hh.
References gem5::System::Threads::Thread::active, and thread().
|
inline |
Definition at line 219 of file system.hh.
References gem5::X86ISA::count, thread(), and threads.
| int gem5::System::Threads::numRunning | ( | ) | const |
Definition at line 131 of file system.cc.
References gem5::X86ISA::count, gem5::ThreadContext::Halted, gem5::ThreadContext::Halting, gem5::ArmISA::status, thread(), and threads.
|
inline |
Definition at line 208 of file system.hh.
References gem5::System::Threads::Thread::context, and thread().
| void gem5::System::Threads::quiesce | ( | ContextID | id | ) |
Definition at line 145 of file system.cc.
References DPRINTFS, gem5::ArmISA::t, and thread().
Referenced by gem5::ThreadContext::quiesce().
Definition at line 154 of file system.cc.
References DPRINTFS, gem5::EventManager::reschedule(), gem5::ArmISA::t, and thread().
Referenced by gem5::ThreadContext::quiesceTick().
|
private |
Definition at line 108 of file system.cc.
References gem5::ThreadContext::getCpuPtr(), panic_if, gem5::EventManager::schedule(), gem5::ArmISA::t, and thread().
|
inline |
Definition at line 215 of file system.hh.
References threads.
Referenced by gem5::GicV2Registers::clearBankedDistRange(), gem5::GicV2Registers::copyBankedDistRange(), gem5::Linux::cpuOnline(), end(), gem5::exitImpl(), gem5::getrlimitFunc(), insert(), gem5::SparcISA::ISA::readFSReg(), gem5::schedGetaffinityFunc(), thread(), thread(), and gem5::pseudo_inst::wakeCPU().
Definition at line 138 of file system.hh.
References gem5::ArmISA::id, size(), and threads.
Referenced by findFree(), insert(), markActive(), numActive(), numRunning(), operator[](), quiesce(), quiesceTick(), and replace().
Definition at line 145 of file system.hh.
References gem5::ArmISA::id, size(), and threads.
|
friend |
|
private |
Definition at line 135 of file system.hh.
Referenced by empty(), findFree(), insert(), numActive(), numRunning(), size(), thread(), and thread().