kernel.hh (12982:c7966254372e) kernel.hh (12990:19d91b53e04e)
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
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; }
59 static sc_core::sc_status status();
60 static void status(sc_core::sc_status s);
61
61
62 void stop();
62 static void stop();
63
63
64 bool startOfSimulationComplete() { return _startComplete; }
65 bool endOfSimulationComplete() { return _endComplete; }
64 static bool startOfSimulationComplete();
65 static bool endOfSimulationComplete();
66
67 private:
66
67 private:
68 bool _stopAfterCallbacks;
69 void stopWork();
68 static void stopWork();
70
69
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__
70 EventWrapper<Kernel, &Kernel::t0Handler> t0Event;
71};
72
73extern Kernel *kernel;
74
75} // namespace sc_gem5
76
77#endif // __SYSTEMC_KERNEL_H__