build(fvp): add Cortex-A78C model
Signed-off-by: Lauren Wehrmeister <lauren.wehrmeister@arm.com>
Change-Id: I7a674011785f340832603567f7f312c6b6f4c774
diff --git a/fvp_utils.sh b/fvp_utils.sh
index 5365d3d..0cfbe52 100644
--- a/fvp_utils.sh
+++ b/fvp_utils.sh
@@ -82,6 +82,7 @@
[cortex-a76x4]="${fvp_arm_std_library};FVP_Base_Cortex-A76x4"
[cortex-a77x4]="${fvp_arm_std_library};FVP_Base_Cortex-A77x4"
[cortex-a78x4]="${fvp_arm_std_library};FVP_Base_Cortex-A78x4"
+[cortex-a78cx4]="${fvp_arm_std_library};FVP_Base_Cortex-A78Cx4"
[cortex-x2]="${fvp_arm_std_library};FVP_Base_Cortex-X2x4"
[neoverse_e1x1]="${fvp_arm_std_library};FVP_Base_Neoverse-E1x1"
[neoverse_e1x2]="${fvp_arm_std_library};FVP_Base_Neoverse-E1x2"
diff --git a/group/tf-l2-boot-tests-cortex/fvp-dynamiq-aarch64-only:fvp-linux-dtb.dyn-fip.uboot-cortexa78cx4-debug b/group/tf-l2-boot-tests-cortex/fvp-dynamiq-aarch64-only:fvp-linux-dtb.dyn-fip.uboot-cortexa78cx4-debug
new file mode 100644
index 0000000..b8939c8
--- /dev/null
+++ b/group/tf-l2-boot-tests-cortex/fvp-dynamiq-aarch64-only:fvp-linux-dtb.dyn-fip.uboot-cortexa78cx4-debug
@@ -0,0 +1,5 @@
+#
+# Copyright (c) 2022, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
diff --git a/group/tftf-l2-fvp-dynamiq/fvp-dynamiq-aarch64-only,fvp-default:fvp-dtb.dyn-tftf-fip.tftf-cortexa78cx4-debug b/group/tftf-l2-fvp-dynamiq/fvp-dynamiq-aarch64-only,fvp-default:fvp-dtb.dyn-tftf-fip.tftf-cortexa78cx4-debug
new file mode 100644
index 0000000..0849ee7
--- /dev/null
+++ b/group/tftf-l2-fvp-dynamiq/fvp-dynamiq-aarch64-only,fvp-default:fvp-dtb.dyn-tftf-fip.tftf-cortexa78cx4-debug
@@ -0,0 +1,6 @@
+#
+# Copyright (c) 2022 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
diff --git a/model/cortex-a78cx4.sh b/model/cortex-a78cx4.sh
new file mode 100644
index 0000000..db56fcd
--- /dev/null
+++ b/model/cortex-a78cx4.sh
@@ -0,0 +1,13 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2022, Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+set_model_path "$warehouse/SysGen/Models/$model_version/$model_build/external/models/$model_flavour/FVP_Base_Cortex-A78Cx4"
+
+# Option not supported on A78C FVP yet.
+export no_quantum=""
+
+source "$ci_root/model/fvp_common.sh"
diff --git a/run_config/fvp-cortexa78cx4 b/run_config/fvp-cortexa78cx4
new file mode 100644
index 0000000..3bf8b00
--- /dev/null
+++ b/run_config/fvp-cortexa78cx4
@@ -0,0 +1,16 @@
+#!/usr/bin/env bash
+#
+# Copyright (c) 2022 Arm Limited. All rights reserved.
+#
+# SPDX-License-Identifier: BSD-3-Clause
+#
+
+post_fetch_tf_resource() {
+ local model="cortex-a78cx4"
+
+ model="$model" \
+ cache_state_modelled="0" \
+ gen_model_params
+ uart="0" set_expect_variable "num_cpus" "4"
+ model="$model" gen_fvp_yaml
+}