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// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2016 Intel Corporation
5
6 This software and the related documents are Intel copyrighted materials, and
7 your use of them is governed by the express license under which they were
8 provided to you ("License"). Unless the License provides otherwise, you may
9 not use, modify, copy, publish, distribute, disclose or transmit this software
10 or the related documents without Intel's prior written permission.
11
12 This software and the related documents are provided as is, with no express or
13 implied warranties, other than those that are expressly stated in the License.
14*/
15
16#ifndef SIMICS_SYSTEMC_IFACE_TEMPORAL_STATE_INTERFACE_H
17#define SIMICS_SYSTEMC_IFACE_TEMPORAL_STATE_INTERFACE_H
18
19#include <simics/base/types.h>
20
21/* Some parts of SystemC is built with SHOW_OBSOLETE_API set and some is not.
22 We always need the temporal_state interface. */
23#ifndef SHOW_OBSOLETE_API
24#define SHOW_OBSOLETE_API
25#define WE_DEFINED_SHOW_OBSOLETE_API
26#endif
27#include <simics/model-iface/temporal-state.h>
28#ifdef WE_DEFINED_SHOW_OBSOLETE_API
29#undef SHOW_OBSOLETE_API
30#undef WE_DEFINED_SHOW_OBSOLETE_API
31#endif
32
33namespace simics {
34namespace systemc {
35namespace iface {
36
38 public:
40
41 virtual lang_void *save() = 0;
42 virtual void merge(lang_void *prev, lang_void *killed) = 0;
43 virtual void prepare_restore() = 0;
44 virtual void finish_restore(lang_void *state) = 0;
45};
46
47} // namespace iface
48} // namespace systemc
49} // namespace simics
50
51#endif // SIMICS_SYSTEMC_IFACE_TEMPORAL_STATE_INTERFACE_H
Definition: temporal_state_interface.h:37
virtual ~TemporalStateInterface()
Definition: temporal_state_interface.h:39
virtual void merge(lang_void *prev, lang_void *killed)=0
virtual void finish_restore(lang_void *state)=0
Definition: adapter.h:80