blob: 2c4de1d663c75cf856b3d47dfb055d0cf17ad132 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Fathi Boudra422bf772019-12-02 11:10:16 +02002#
Zelalemeb9c1bb2020-08-04 12:40:46 -05003# Copyright (c) 2019-2020, Arm Limited. All rights reserved.
Fathi Boudra422bf772019-12-02 11:10:16 +02004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8# Use revc model
Leonardo Sandovalc7317ea2021-02-23 17:55:07 -06009if is_arm_jenkins_env; then
10 set_model_path "$warehouse/SysGen/Models/$model_version/$model_build/models/$model_flavour/FVP_Base_RevC-2xAEMv8A"
11 default_var sve_plugin_path "$warehouse/SysGen/PVModelLib/$model_version/$model_build/external/plugins/$model_flavour/sve2-HEAD/ScalableVectorExtension.so"
12else
13 # OpenCI enviroment
14 source "$ci_root/fvp_utils.sh"
Fathi Boudra422bf772019-12-02 11:10:16 +020015
Leonardo Sandovalc7317ea2021-02-23 17:55:07 -060016 # fvp_models variable contains the information for FVP paths, where 2nd field
17 # points to the /opt/model/*/models/${model_flavour}
18 models_dir="$(echo ${fvp_models[$model]} | awk -F ';' '{print $2}')"
19 set_model_path "$models_dir"
20
21 # ScalableVectorExtension is located at /opt/model/*/plugins/${model_flavour}
22 default_var sve_plugin_path "${models_dir/models/plugins}/ScalableVectorExtension.so"
23fi
Fathi Boudra422bf772019-12-02 11:10:16 +020024
Zelalemeb9c1bb2020-08-04 12:40:46 -050025default_var is_dual_cluster 1
26
27source "$ci_root/model/base-aemva-common.sh"
28
29# Base address for each redistributor
30if [ "$gicd_virtual_lpi" = "1" ]; then
31 cat <<EOF >>"$model_param_file"
32-C gic_distributor.reg-base-per-redistributor=0.0.0.0=0x2f100000,0.0.1.0=0x2f140000,0.0.2.0=0x2f180000,0.0.3.0=0x2f1c0000,0.1.0.0=0x2f200000,0.1.1.0=0x2f240000,0.1.2.0=0x2f280000,0.1.3.0=0x2f2c0000
33-C gic_distributor.print-memory-map=1
34EOF
35fi