Deleted Added
sdiff udiff text old ( 13189:057566bc8fd6 ) new ( 13238:3521d1f59c22 )
full compact
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/channel.hh"
32#include "systemc/core/scheduler.hh"
33#include "systemc/ext/core/sc_prim.hh"
34
35namespace sc_gem5
36{
37
38uint64_t getChangeStamp() { return scheduler.changeStamp(); }
39
40} // namespace sc_gem5
41
42namespace sc_core
43{
44
45sc_prim_channel::sc_prim_channel() :
46 _gem5_channel(new sc_gem5::Channel(this))
47{}
48
49sc_prim_channel::sc_prim_channel(const char *_name) :
50 sc_object(_name), _gem5_channel(new sc_gem5::Channel(this))
51{}
52
53sc_prim_channel::~sc_prim_channel() { delete _gem5_channel; }
54
55void
56sc_prim_channel::request_update()
57{
58 _gem5_channel->requestUpdate();
59}

--- 166 unchanged lines hidden ---