sensitivity.cc (13304:893e724efd57) sensitivity.cc (13317:36c574a4036e)
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"
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"
40#include "systemc/ext/core/sc_export.hh"
41#include "systemc/ext/core/sc_interface.hh"
42#include "systemc/ext/core/sc_port.hh"
43
44namespace sc_gem5
45{
46
47/*

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

62}
63
64bool
65Sensitivity::notify(Event *e)
66{
67 if (scheduler.current() == process) {
68 static bool warned = false;
69 if (!warned) {
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) {
70 SC_REPORT_WARNING("(W536) immediate self-notification ignored "
71 "as of IEEE 1666-2011", process->name());
71 SC_REPORT_WARNING(sc_core::SC_ID_IMMEDIATE_SELF_NOTIFICATION_,
72 process->name());
72 warned = true;
73 }
74 return false;
75 }
76
77 if (process->disabled())
78 return false;
79

--- 174 unchanged lines hidden ---
73 warned = true;
74 }
75 return false;
76 }
77
78 if (process->disabled())
79 return false;
80

--- 174 unchanged lines hidden ---