SIM_register_copyright — register copyright information
#include <simics/device-api.h> // in C
// always available in DML
// only supported with SIMICS_API = 6
void
SIM_register_copyright(const char *NOTNULL str);
This registers specific copyright information related to an extension module or similar component of Simics. The Simics front-end command “copyright” will list, in addition to Simics copyright notices, any registered notices from libraries or plug-ins that have added a string using this function.
The string should contain only standard ASCII characters, be pre-formatted for at most 80-character width terminal, be non-indented, and have no spurious new-line characters before or after the last line (except for the new-line that marks the end of the last line).
The string will not be copied so needs to be either static or a copy generated by the callee (preferably static).
Global Context
SIM_version, SIM_version_base, SIM_version_major, SIM_license, SIM_license_file, SIM_copyright, SIM_vmxmon_version — get Simics version and license/copyright information
#include <simics/device-api.h> // in C
// always available in DML
const char *
SIM_version();
const char *
SIM_version_base();
const char *
SIM_version_major();
void
SIM_license();
char *
SIM_license_file(const char *format);
char *
SIM_copyright();
char *
SIM_vmxmon_version();
import simics
simics.SIM_version(...)
simics.SIM_version_base(...)
simics.SIM_version_major(...)
simics.SIM_license(...)
simics.SIM_license_file(...)
simics.SIM_copyright(...)
simics.SIM_vmxmon_version(...)
SIM_versionSIM_version_baseSIM_version_majorSIM_vmxmon_versionNULL is returned if the module is not loaded.SIM_license_fileformat parameter can be either an empty string (text version) or “rtf” (RTF version).SIM_copyrightSIM_licenseSIM_version, SIM_version_base, SIM_version_major return a string owned by Simics. These strings must not be deallocated or modified by the caller.
SIM_vmxmon_version, SIM_license_file, and SIM_copyright return a newly allocated string which is owned by the caller. This means that when the function is called from C its return value should be later freed with the use of the MM_FREE macro.
Global Context