SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
temporal_state_interface.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_IFACE_TEMPORAL_STATE_INTERFACE_H
15#define SIMICS_SYSTEMC_IFACE_TEMPORAL_STATE_INTERFACE_H
16
17#include <simics/base/types.h>
18
19/* Some parts of SystemC is built with SHOW_OBSOLETE_API set and some is not.
20 We always need the temporal_state interface. */
21#ifndef SHOW_OBSOLETE_API
22#define SHOW_OBSOLETE_API
23#define WE_DEFINED_SHOW_OBSOLETE_API
24#endif
25#include <simics/model-iface/temporal-state.h>
26#ifdef WE_DEFINED_SHOW_OBSOLETE_API
27#undef SHOW_OBSOLETE_API
28#undef WE_DEFINED_SHOW_OBSOLETE_API
29#endif
30
31namespace simics {
32namespace systemc {
33namespace iface {
34
36 public:
38
39 virtual lang_void *save() = 0;
40 virtual void merge(lang_void *prev, lang_void *killed) = 0;
41 virtual void prepare_restore() = 0;
42 virtual void finish_restore(lang_void *state) = 0;
43};
44
45} // namespace iface
46} // namespace systemc
47} // namespace simics
48
49#endif // SIMICS_SYSTEMC_IFACE_TEMPORAL_STATE_INTERFACE_H
Definition: temporal_state_interface.h:35
virtual ~TemporalStateInterface()
Definition: temporal_state_interface.h:37
virtual void merge(lang_void *prev, lang_void *killed)=0
virtual void finish_restore(lang_void *state)=0
Definition: adapter.h:79