This chapter gives a short overview of the process of updating code and scripts from any older Simics version to the most recent one. The following chapters, on the other hand, contain version specific descriptions.
It is assumed that the migration is from Simics 5 or Simics 4.8, the two supported Simics versions at the time of the Simics 6 release.
SIMICS_API to 5 in the module
Makefile and correspondingly for Simics 4.8. If the code does not
compile cleanly, consult the Migration Guide for that Simics
version. When moving to Simics 5, you should always start with modules
that are updated to use the most recent API in the Simics version you
migrate from.
import simics_5_api as simics
This will simplify the migration of code to a newer version of Simics later.
-wdeprecated command
line flag to the Simics binary. This will catch uses of some
deprecated features that can only be detected in run time. An
alternative is to set the
sim→deprecation_level attribute to 2.
-no-wdeprecated to suppress deprecation warnings in the
process. Once everything works, you can start using the new
version of Simics for actual work. The following steps are
optional at this point, but still strongly recommended.
-no-wdeprecated flag when running tests and scripts.
Update any code that yields deprecation warnings according to the
following chapters.