SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
checkpoint_control.h
Go to the documentation of this file.
1/*
2 © 2016 Intel Corporation
3
4 This software and the related documents are Intel copyrighted materials, and
5 your use of them is governed by the express license under which they were
6 provided to you ("License"). Unless the License provides otherwise, you may
7 not use, modify, copy, publish, distribute, disclose or transmit this software
8 or the related documents without Intel's prior written permission.
9
10 This software and the related documents are provided as is, with no express or
11 implied warranties, other than those that are expressly stated in the License.
12*/
13
14#ifndef SIMICS_SYSTEMC_CHECKPOINT_CONTROL_H
15#define SIMICS_SYSTEMC_CHECKPOINT_CONTROL_H
16
17#include <systemc-checkpoint/checkpoint_control.h>
18#include <systemc-checkpoint/kernel.h>
19#include <systemc-checkpoint/time_information_interface.h>
20
21namespace simics {
22namespace systemc {
23
25 : public sc_checkpoint::CheckpointControl,
26 public sc_checkpoint::ExternalTimeInformationInterface {
27 public:
28 CheckpointControl() : sc_checkpoint::CheckpointControl() {}
29
30 void set_time_information(int64_t high, uint64_t low) override {
31 kernel_.set_time_information(high, low);
32 }
33 void time_information(int64_t *high, uint64_t *low) override {
34 kernel_.time_information(high, low);
35 }
36};
37
38} // namespace systemc
39} // namespace simics
40
41#endif // SIMICS_SYSTEMC_CHECKPOINT_CONTROL_H
Definition: checkpoint_control.h:26
CheckpointControl()
Definition: checkpoint_control.h:28
void set_time_information(int64_t high, uint64_t low) override
Definition: checkpoint_control.h:30
void time_information(int64_t *high, uint64_t *low) override
Definition: checkpoint_control.h:33
Definition: adapter.h:79