39 Checkpoint Compatibility VII Extending Simics
Model Builder User's Guide  /  VI Simics API  / 

40 Logging and output

The Simics logging and output facility can be controlled via attributes on the sim object and via command line parameters.

Warning messages are either log warnings, or messages printed using SIM_printf_warning. Similarly, error messages are either log errors or messages printed using SIM_printf_error.

This table summarizes how Simics behaves for the different message types.

sim->stop_on_error=falsesim->stop_on_error=true
sim->warnings_as_errors=false
sim->warnings_as_errors=true
WarningsStop
ErrorsStopStop
Log criticalStopStopStop
Deprecation warningsStopStop

In the case of deprecation warnings, there is also sim->deprecations_as_errors which has the same effect as sim->stop_on_error.

There is also an attribute sim->ignore_error_count, which can be set to a positive integer. This results in Simics ignoring the error condition of that number of error messages, i.e. the sim->stop_on_error=true effect is ignored.

The attributes sim->stop_on_error, sim->warnings_as_errors and sim->deprecations_as_errors can be set using the corresponding command line flags, --stop-on-error, --warnings-as-errors and --deprecations-as-errors.

39 Checkpoint Compatibility VII Extending Simics