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/*
2 © 2015 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_INTERNALS_H
15#define SIMICS_SYSTEMC_INTERNALS_H
16
17#include <simics/cc-api.h> // conf_object_t, conf_class_t, attr_value_t
18
19// TODO(ah): make sure all use of internals go through this file
20// TODO(ah): update this now that MB and EB are part of Base
21
22extern "C" {
23extern void SIM_break_simulation(const char *msg);
24extern conf_object_t *SIM_create_object(conf_class_t *NOTNULL cls,
25 const char *name, attr_value_t attrs);
26extern int SIM_delete_object(conf_object_t *NOTNULL obj);
27extern attr_value_t SIM_get_attribute(conf_object_t *NOTNULL obj,
28 const char *name);
29extern conf_object_t *SIM_get_object(const char *NOTNULL name);
30extern bool SIM_get_init_arg_boolean(const char *NOTNULL name,
31 bool default_value);
33extern void SIM_thread_safe_callback(void (*NOTNULL f)(lang_void *data),
34 lang_void *data);
35
36extern int SIM_write(const void *NOTNULL src, int length);
37
38extern void VT_register_thread();
40
41extern conf_class_t *SIM_get_class(const char *NOTNULL name);
42} // extern "C"
43
44#endif // SIMICS_SYSTEMC_INTERNALS_H
conf_object_t * SIM_create_object(conf_class_t *NOTNULL cls, const char *name, attr_value_t attrs)
bool SIM_simics_is_running()
void SIM_thread_safe_callback(void(*NOTNULL f)(lang_void *data), lang_void *data)
conf_object_t * SIM_get_object(const char *NOTNULL name)
char * VT_generate_object_name()
attr_value_t SIM_get_attribute(conf_object_t *NOTNULL obj, const char *name)
conf_class_t * SIM_get_class(const char *NOTNULL name)
bool SIM_get_init_arg_boolean(const char *NOTNULL name, bool default_value)
void VT_register_thread()
int SIM_write(const void *NOTNULL src, int length)
int SIM_delete_object(conf_object_t *NOTNULL obj)
void SIM_break_simulation(const char *msg)