gem5  v21.1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Namespaces | Functions | Variables
simulate.cc File Reference
#include "sim/simulate.hh"
#include <mutex>
#include <thread>
#include "base/logging.hh"
#include "base/pollevent.hh"
#include "base/types.hh"
#include "sim/async.hh"
#include "sim/eventq.hh"
#include "sim/sim_events.hh"
#include "sim/sim_exit.hh"
#include "sim/stat_control.hh"

Go to the source code of this file.

Namespaces

 gem5
 Reference material can be found at the JEDEC website: UFS standard http://www.jedec.org/standards-documents/results/jesd220 UFS HCI specification http://www.jedec.org/standards-documents/results/jesd223.
 

Functions

Event * gem5::doSimLoop (EventQueue *)
 forward declaration More...
 
static void gem5::thread_loop (EventQueue *queue)
 The main function for all subordinate threads (i.e., all threads other than the main thread). More...
 
GlobalSimLoopExitEvent * gem5::simulate (Tick num_cycles)
 Simulate for num_cycles additional cycles. More...
 
static bool gem5::testAndClearAsyncEvent ()
 Test and clear the global async_event flag, such that each time the flag is cleared, only one thread returns true (and thus is assigned to handle the corresponding async event(s)). More...
 

Variables

std::mutex gem5::asyncEventMutex
 Mutex for handling async events. More...
 
Barrier * gem5::threadBarrier
 Global barrier for synchronizing threads entering/exiting the simulation loop. More...
 
GlobalSimLoopExitEvent * gem5::simulate_limit_event = nullptr
 

Generated on Wed Jul 28 2021 12:10:33 for gem5 by doxygen 1.8.17