SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
internals.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2015 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_INTERNALS_H
17#define SIMICS_SYSTEMC_INTERNALS_H
18
19#include <simics/cc-api.h> // conf_object_t, conf_class_t, attr_value_t
20
21// TODO(ah): make sure all use of internals go through this file
22// TODO(ah): update this now that MB and EB are part of Base
23
24extern "C" {
25extern void SIM_break_simulation(const char *msg);
26extern conf_object_t *SIM_create_object(conf_class_t *NOTNULL cls,
27 const char *name, attr_value_t attrs);
28extern int SIM_delete_object(conf_object_t *NOTNULL obj);
29extern attr_value_t SIM_get_attribute(conf_object_t *NOTNULL obj,
30 const char *name);
31extern conf_object_t *SIM_get_object(const char *NOTNULL name);
32extern bool SIM_get_init_arg_boolean(const char *NOTNULL name,
33 bool default_value);
34extern bool SIM_simics_is_running(void);
35extern void SIM_thread_safe_callback(void (*NOTNULL f)(lang_void *data),
36 lang_void *data);
37
38extern void VT_set_delete_protection(conf_object_t *NOTNULL obj, bool on);
39extern int VT_write_rev(const void *NOTNULL src, int length);
40
41extern void VT_register_thread();
42extern char *VT_generate_object_name(void);
43
44extern conf_class_t *SIM_get_class(const char *NOTNULL name);
45} // extern "C"
46
47#endif // SIMICS_SYSTEMC_INTERNALS_H
conf_object_t * SIM_create_object(conf_class_t *NOTNULL cls, const char *name, attr_value_t attrs)
void SIM_thread_safe_callback(void(*NOTNULL f)(lang_void *data), lang_void *data)
conf_object_t * SIM_get_object(const char *NOTNULL name)
bool SIM_simics_is_running(void)
attr_value_t SIM_get_attribute(conf_object_t *NOTNULL obj, const char *name)
conf_class_t * SIM_get_class(const char *NOTNULL name)
int VT_write_rev(const void *NOTNULL src, int length)
bool SIM_get_init_arg_boolean(const char *NOTNULL name, bool default_value)
void VT_register_thread()
void VT_set_delete_protection(conf_object_t *NOTNULL obj, bool on)
char * VT_generate_object_name(void)
int SIM_delete_object(conf_object_t *NOTNULL obj)
void SIM_break_simulation(const char *msg)