Deleted Added
sdiff udiff text old ( 13304:893e724efd57 ) new ( 13317:36c574a4036e )
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

--- 23 unchanged lines hidden (view full) ---

32#include "base/logging.hh"
33#include "systemc/core/event.hh"
34#include "systemc/core/port.hh"
35#include "systemc/core/process.hh"
36#include "systemc/core/scheduler.hh"
37#include "systemc/ext/channel/sc_in.hh"
38#include "systemc/ext/channel/sc_inout.hh"
39#include "systemc/ext/channel/sc_out.hh"
40#include "systemc/ext/core/messages.hh"
41#include "systemc/ext/core/sc_export.hh"
42#include "systemc/ext/core/sc_interface.hh"
43#include "systemc/ext/core/sc_port.hh"
44
45namespace sc_gem5
46{
47
48/*

--- 14 unchanged lines hidden (view full) ---

63}
64
65bool
66Sensitivity::notify(Event *e)
67{
68 if (scheduler.current() == process) {
69 static bool warned = false;
70 if (!warned) {
71 SC_REPORT_WARNING(sc_core::SC_ID_IMMEDIATE_SELF_NOTIFICATION_,
72 process->name());
73 warned = true;
74 }
75 return false;
76 }
77
78 if (process->disabled())
79 return false;
80

--- 174 unchanged lines hidden ---