johpow01 | 936638d | 2021-11-08 18:22:24 -0600 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # Copyright (c) 2021, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | if is_arm_jenkins_env || upon "$local_ci"; then |
| 9 | # Internal ARM Jenkins environment path |
| 10 | set_model_path "$warehouse/SysGen/Models/$model_version/$model_build/external/models/$model_flavour/FVP_BaseR_AEMv8R" |
| 11 | else |
| 12 | # OpenCI support will be added in a future patch |
Divin Raj | b007105 | 2023-07-04 14:35:07 +0100 | [diff] [blame] | 13 | source "$ci_root/fvp_utils.sh" |
| 14 | # fvp_models variable contains the information for FVP paths, where 2nd field |
| 15 | # points to the /opt/model/*/models/${model_flavour} |
| 16 | models_dir="$(echo ${fvp_models[$model]} | awk -F ';' '{print $2}')" |
| 17 | set_model_path "$models_dir" |
johpow01 | 936638d | 2021-11-08 18:22:24 -0600 | [diff] [blame] | 18 | fi |
| 19 | |
| 20 | # Write model command line options |
| 21 | cat <<EOF >"$model_param_file" |
Chris Kay | 30120b3 | 2023-01-31 16:43:49 +0000 | [diff] [blame] | 22 | -C bp.terminal_0.start_port=5000 |
| 23 | -C bp.terminal_1.start_port=5001 |
| 24 | -C bp.terminal_2.start_port=5002 |
| 25 | -C bp.terminal_3.start_port=5003 |
johpow01 | 936638d | 2021-11-08 18:22:24 -0600 | [diff] [blame] | 26 | |
| 27 | -C bp.pl011_uart0.unbuffered_output=1 |
| 28 | -C bp.pl011_uart0.untimed_fifos=true |
| 29 | -C cache_state_modelled=0 |
| 30 | -C bp.vis.rate_limit-enable=0 |
| 31 | -C cluster0.NUM_CORES=4 |
| 32 | -C cluster0.has_aarch64=1 |
| 33 | -C bp.exclusive_monitor.monitor_access_level=1 |
| 34 | -C cluster0.cpu0.RVBAR=0x80000000 |
| 35 | -C cluster0.cpu1.RVBAR=0x80000000 |
| 36 | -C cluster0.cpu2.RVBAR=0x80000000 |
| 37 | -C cluster0.cpu3.RVBAR=0x80000000 |
| 38 | -C bp.dram_metadata.init_value=0 |
| 39 | -C bp.dram_metadata.is_enabled=true |
| 40 | -C bp.dram_size=8 |
| 41 | -C bp.refcounter.non_arch_start_at_default=1 |
| 42 | -C bp.ve_sysregs.mmbSiteDefault=0 |
| 43 | -C cluster0.gicv3.cpuintf-mmap-access-level=2 |
| 44 | -C cluster0.gicv3.SRE-enable-action-on-mmap=2 |
| 45 | -C cluster0.gicv3.SRE-EL2-enable-RAO=1 |
| 46 | -C cluster0.gicv3.extended-interrupt-range-support=1 |
| 47 | -C cluster0.stage12_tlb_size=512 |
| 48 | -C gic_distributor.GICD_CTLR-DS-1-means-secure-only=1 |
| 49 | -C gic_distributor.GITS_BASER0-type=1 |
| 50 | -C gic_distributor.ITS-count=1 |
| 51 | -C gic_distributor.ITS-hardware-collection-count=1 |
| 52 | -C gic_distributor.direct-lpi-support=1 |
| 53 | -C gic_distributor.has-two-security-states=0 |
| 54 | -C pctl.startup=0.0.0.* |
| 55 | -C bp.secureflashloader.fname=$bl1_bin |
| 56 | -C bp.virtioblockdevice.image_path=$rootfs_bin |
| 57 | --data cluster0.cpu0=$fip_bin@$fip_addr |
| 58 | --data cluster0.cpu0=$dtb_bin@$dtb_addr |
| 59 | --data cluster0.cpu0=$kernel_bin@$kernel_addr |
| 60 | |
| 61 | EOF |