simulate.cc (10762:fe0972727902) | simulate.cc (11793:ef606668d247) |
---|---|
1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * Copyright (c) 2013 Mark D. Hill and David A. Wood 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 17 unchanged lines hidden (view full) --- 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * 30 * Authors: Nathan Binkert 31 * Steve Reinhardt 32 */ 33 | 1/* 2 * Copyright (c) 2006 The Regents of The University of Michigan 3 * Copyright (c) 2013 Advanced Micro Devices, Inc. 4 * Copyright (c) 2013 Mark D. Hill and David A. Wood 5 * All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions are --- 17 unchanged lines hidden (view full) --- 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * 30 * Authors: Nathan Binkert 31 * Steve Reinhardt 32 */ 33 |
34#include "sim/simulate.hh" 35 |
|
34#include <mutex> 35#include <thread> 36 37#include "base/misc.hh" 38#include "base/pollevent.hh" 39#include "base/types.hh" 40#include "sim/async.hh" 41#include "sim/eventq_impl.hh" 42#include "sim/sim_events.hh" 43#include "sim/sim_exit.hh" | 36#include <mutex> 37#include <thread> 38 39#include "base/misc.hh" 40#include "base/pollevent.hh" 41#include "base/types.hh" 42#include "sim/async.hh" 43#include "sim/eventq_impl.hh" 44#include "sim/sim_events.hh" 45#include "sim/sim_exit.hh" |
44#include "sim/simulate.hh" | |
45#include "sim/stat_control.hh" 46 47//! Mutex for handling async events. 48std::mutex asyncEventMutex; 49 50//! Global barrier for synchronizing threads entering/exiting the 51//! simulation loop. 52Barrier *threadBarrier; --- 173 unchanged lines hidden --- | 46#include "sim/stat_control.hh" 47 48//! Mutex for handling async events. 49std::mutex asyncEventMutex; 50 51//! Global barrier for synchronizing threads entering/exiting the 52//! simulation loop. 53Barrier *threadBarrier; --- 173 unchanged lines hidden --- |