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=false | sim->stop_on_error=true sim->warnings_as_errors=false | sim->warnings_as_errors=true | |
|---|---|---|---|
| Warnings | Stop | ||
| Errors | Stop | Stop | |
| Log critical | Stop | Stop | Stop |
| Deprecation warnings | Stop | Stop |
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.