Deleted Added
sdiff udiff text old ( 12982:c7966254372e ) new ( 12990:19d91b53e04e )
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

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

51 Kernel(Params *params);
52
53 void init() override;
54 void regStats() override;
55 void startup() override;
56
57 void t0Handler();
58
59 sc_core::sc_status status() { return _status; }
60 void status(sc_core::sc_status s) { _status = s; }
61
62 void stop();
63
64 bool startOfSimulationComplete() { return _startComplete; }
65 bool endOfSimulationComplete() { return _endComplete; }
66
67 private:
68 bool _stopAfterCallbacks;
69 void stopWork();
70
71 bool _startComplete;
72 bool _endComplete;
73 sc_core::sc_status _status;
74
75 EventWrapper<Kernel, &Kernel::t0Handler> t0Event;
76};
77
78extern Kernel *kernel;
79
80} // namespace sc_gem5
81
82#endif // __SYSTEMC_KERNEL_H__