Obsolete Device API Types and Functions Obsolete Device API Functions
API Reference Manual  /  Device API  /  Obsolete Device API Types and Functions  / 

Obsolete Device API Data Types

init_prefs_t

Name

init_prefs_t — deprecated type

Synopsis

C and DML

#include <simics/simulator-api.h> // in C
import "simics/simulator-api.dml"; // in DML

typedef struct {
        bool batch_mode;
        bool quiet;
        bool verbose;
        bool python_verbose;
        bool disable_istc;
        bool disable_dstc;
        bool module_cache_enable;
        bool rdp;
        bool sign_module;
        const char *log_file;

        /* The Simics project to use */
        const char *project;       // NULL to use saved prefs value

        const char *package_list;  // internal, do not use

        bool no_windows;
        bool fail_on_warnings;
        const char *deprecation_level; // see sim->warn_deprecated
        bool warn_deprecated;       // same as deprecation_level == 2
        bool no_warn_deprecated;    // same as deprecation_level == 0

        bool warn_multithread;  /* deprecated and ignored (bug 21597) */
        bool check_ifaces;
        bool no_global_settings;    // do not read preferences and recent-files

        /* the following should be -1 if not set by command line options
           to tell SIM_init_simulator() to use the saved preference value */
        int log_enable;
} init_prefs_t;

Description

The init_prefs_t types are deprecated and should not be used in new code.

log_type_t

Name

log_type_t — type describing different log types

Synopsis

C and DML

#include <simics/device-api.h> // in C
// always available in DML

typedef enum {
        Sim_Log_Info,           // Normal informational message
        Sim_Log_Error,          // Simics error
        Sim_Log_Spec_Violation, // target program violates the specification
        Sim_Log_Unimplemented,  // not implemented in Simics
        Sim_Log_Critical,       // Critical error stopping Simics
        Sim_Log_Trace,          // Breakpoint trace messages
        Sim_Log_Warning,        // Simics warning
        Sim_Log_Num_Types,      // Do not use
} log_type_t;

Python

import simics

simics.Sim_Log_Trace
simics.Sim_Log_Num_Types
simics.Sim_Log_Info
simics.Sim_Log_Error
simics.Sim_Log_Warning
simics.Sim_Log_Spec_Violation
simics.Sim_Log_Critical
simics.Sim_Log_Unimplemented

Description

This type defines different log types that are used by the logging facility to categorise messages.

Obsolete Device API Types and Functions Obsolete Device API Functions