blob: cdf56083ee2998ac52f686f9773df190a0e7966b [file] [log] [blame]
Manish V Badarkhee4783832021-02-22 14:36:56 +00001#!/usr/bin/env bash
2#
laurenw-armafdc3bc2022-09-14 15:31:42 -05003# Copyright (c) 2021-2022, Arm Limited. All rights reserved.
Manish V Badarkhee4783832021-02-22 14:36:56 +00004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
laurenw-armafdc3bc2022-09-14 15:31:42 -05008set_model_path "$warehouse/SysGen/Models/$model_version_11_17/$model_build_11_17/external/models/$model_flavour_11_17/FVP_Base_AEMv8A-GIC600AE"
Manish V Badarkhee4783832021-02-22 14:36:56 +00009
10default_var sve_plugin_path "$warehouse/SysGen/PVModelLib/0.0/6415/external/plugins/$model_flavour/sve2-HEAD/ScalableVectorExtension.so"
11
12source "$ci_root/model/base-aemva-common.sh"
13
Manish V Badarkhe6cc09352022-03-29 23:40:03 +010014# TF-A code maintain GICD and GICR base address at 0x2f000000
15# 0x2f100000 respectively. Model provides provision to only
16# put GICD base address, and there is a calculation to derive
17# GICR base address i.e.
18# GICR base address = 0x2f000000 + (4 + (2 × ITScount)+(RDnum × 2)) << 16
19# Hence to set GICR base address to 0x2f100000, set the
20# ITScount=6 where RDnum=0
Manish V Badarkhee4783832021-02-22 14:36:56 +000021cat <<EOF >>"$model_param_file"
Manish V Badarkhe6cc09352022-03-29 23:40:03 +010022-C gic_iri.ITS-count=6
Manish V Badarkhee4783832021-02-22 14:36:56 +000023EOF