1/*
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright
--- 16 unchanged lines hidden (view full) ---
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * Authors: Gabe Black
28 */
29
30#include "base/logging.hh"
31#include "systemc/core/event.hh"
32#include "systemc/ext/core/sc_event.hh"
33
34namespace sc_core
35{
36
37
38/*
39 * sc_event_and_list
40 */
--- 265 unchanged lines hidden (view full) ---
306 return expr;
307}
308
309
310/*
311 * sc_event
312 */
313
314sc_event::sc_event() : _gem5_event(new ::sc_gem5::Event(this)) {}
315
316sc_event::sc_event(const char *_name) :
317 _gem5_event(new ::sc_gem5::Event(this, _name))
318{}
319
320sc_event::~sc_event() { delete _gem5_event; }
321
322const char *sc_event::name() const { return _gem5_event->name().c_str(); }
--- 72 unchanged lines hidden ---
2 * Copyright 2018 Google, Inc.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are
6 * met: redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer;
8 * redistributions in binary form must reproduce the above copyright
--- 16 unchanged lines hidden (view full) ---
25 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 *
27 * Authors: Gabe Black
28 */
29
30#include "base/logging.hh"
31#include "systemc/core/event.hh"
32#include "systemc/ext/core/sc_event.hh"
33
34namespace sc_core
35{
36
37
38/*
39 * sc_event_and_list
40 */
--- 265 unchanged lines hidden (view full) ---
306 return expr;
307}
308
309
310/*
311 * sc_event
312 */
313
314sc_event::sc_event() : _gem5_event(new ::sc_gem5::Event(this)) {}
315
316sc_event::sc_event(const char *_name) :
317 _gem5_event(new ::sc_gem5::Event(this, _name))
318{}
319
320sc_event::~sc_event() { delete _gem5_event; }
321
322const char *sc_event::name() const { return _gem5_event->name().c_str(); }
--- 72 unchanged lines hidden ---