19.3.5. Setting model configuration options from Model Shell

You can control the initial state of the AEMv8-A Base Platform FVP by configuration settings provided on the command line or in the CADI properties for the model.

Using a configuration file

To configure a model that you start from the command line with Model Shell, include a reference to an optional plain text configuration file when you start the AEMv8-A Base Platform FVP.

Comment lines in the configuration file must begin with a # character.

Each non-comment line of the configuration file contains:

  • The name of the component instance.

  • The parameter to be modified and its value.

    You can set boolean values using either true/false or 1/0. You must enclose strings in double quotation marks if they contain whitespace.

Example 19.1. Typical configuration file

  # Disable semihosting using true/false syntax
  # Enable the boot switch using 1/0 syntax
  # Set the boot switch position

You can get the full list of model parameters by passing the -l switch.For example:

    models/Linux64_GCC-4.1/FVP_Base_AEMv8A-AEMv8A -l
  # Parameters:
  # instance.parameter=value #(type, mode) default = 'def value' : description :   [min..max]
  cache_state_modelled=1     # (bool, init-time) default = '1'   // Enabled d-cache and                                                                  // i-cache state for                                                                  // all components
  cluster0.NUM_CORES=0x4     # (int , init-time) default = '0x4' // Number of cores in                                                                  // cluster0:[0x1..0x4]
  cluster1.NUM_CORES=0x4     # (int , init-time) default = '0x4' // Number of cores in                                                                  // cluster1:[0x0..0x4]
  gicv3.gicv2-only=0         # (bool, init-time) default = '0'   // When using the
                                                                 // GICv3 model,pretend
                                                                 // to be a GICv2
                                                                 // system.
  semihosting-enable=1       # (bool, init-time) default = '1'   // Enable semihosting                                                                  // for all cores
spiden=1                   # (bool, init-time) default = '1'   // Debug authentication                                                                // signal spiden
spniden=1                 # (bool, init-time) default = '1'    // Debug authentication                                                                // signal spniden
<output truncated>

Using the command line

You can use the -C switch to define model parameters when you invoke the model. You can also use --parameter as a synonym for the -C switch. Use the same syntax as for a configuration file, but precede each parameter with the -C switch.

Copyright © 2015 ARM. All rights reserved.ARM DEN0024A