feat(mte): enable MTE support in SPM tests
Adds MTE support parameters to FVP models.
Enables MTE support in relevant tf-a builds.
Signed-off-by: Maksims Svecovs <maksims.svecovs@arm.com>
Change-Id: Ib31275b165d955c308af8ffcb38a532a2d3357dc
diff --git a/run_config/fvp-spm b/run_config/fvp-spm
index cb0a5ec..7d13362 100644
--- a/run_config/fvp-spm
+++ b/run_config/fvp-spm
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
+# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -31,6 +31,7 @@
has_smmuv3_params="1" \
has_branch_target_exception="1" \
restriction_on_speculative_execution="2" \
+ memory_tagging_support_level="2" \
gen_model_params
model="$model" gen_fvp_yaml
diff --git a/run_config/fvp-spm+romlib b/run_config/fvp-spm+romlib
index 2334371..2a4e4ad 100644
--- a/run_config/fvp-spm+romlib
+++ b/run_config/fvp-spm+romlib
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# Copyright (c) 2021, Arm Limited. All rights reserved.
+# Copyright (c) 2021-2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -32,6 +32,7 @@
has_smmuv3_params="1" \
has_branch_target_exception="1" \
restriction_on_speculative_execution="2" \
+ memory_tagging_support_level="2" \
gen_model_params
model="$model" gen_fvp_yaml
diff --git a/run_config/fvp-spm.linux b/run_config/fvp-spm.linux
index 32b0c88..20b8552 100644
--- a/run_config/fvp-spm.linux
+++ b/run_config/fvp-spm.linux
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
+# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -38,6 +38,7 @@
kernel_addr=0x88000000 \
kernel_bin="$archive/hafnium.bin" \
has_smmuv3_params="1" \
+ memory_tagging_support_level="2" \
gen_model_params
model="$model" model_dtb="manifest.dtb" gen_fvp_yaml
diff --git a/run_config/fvp-spm.optee.sp b/run_config/fvp-spm.optee.sp
index 5b5d6dc..65e6fa0 100644
--- a/run_config/fvp-spm.optee.sp
+++ b/run_config/fvp-spm.optee.sp
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
+# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -39,6 +39,7 @@
has_smmuv3_params="1" \
has_branch_target_exception="1" \
restriction_on_speculative_execution="2" \
+ memory_tagging_support_level="2" \
gen_model_params
model="$model" gen_fvp_yaml
diff --git a/run_config/fvp-spm.rstbl31 b/run_config/fvp-spm.rstbl31
index d4afdc6..ccc1330 100644
--- a/run_config/fvp-spm.rstbl31
+++ b/run_config/fvp-spm.rstbl31
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# Copyright (c) 2020-2021, Arm Limited. All rights reserved.
+# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -65,6 +65,7 @@
sp3_pkg="cactus-tertiary.pkg" \
sp4_pkg="ivy.pkg" \
has_smmuv3_params="1" \
+ memory_tagging_support_level="2" \
gen_model_params
model="$model" gen_fvp_yaml
diff --git a/run_config/fvp-spm.sve+amu b/run_config/fvp-spm.sve+amu
index fb77b2d..9ab697f 100644
--- a/run_config/fvp-spm.sve+amu
+++ b/run_config/fvp-spm.sve+amu
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# Copyright (c) 2021, Arm Limited. All rights reserved.
+# Copyright (c) 2021-2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -33,6 +33,7 @@
has_smmuv3_params="1" \
has_branch_target_exception="1" \
restriction_on_speculative_execution="2" \
+ memory_tagging_support_level="2" \
gen_model_params
model="$model" gen_fvp_yaml
diff --git a/run_config/fvp-tc0.spm.tftf b/run_config/fvp-tc0.spm.tftf
index 08c31ae..7fa1b06 100644
--- a/run_config/fvp-tc0.spm.tftf
+++ b/run_config/fvp-tc0.spm.tftf
@@ -32,7 +32,9 @@
post_fetch_tf_resource() {
local model="tc0"
- model="$model" gen_model_params
+ model="$model" \
+ memory_tagging_support_level="2" \
+ gen_model_params
set_run_env "ports_script" "$ci_root/model/tc-ports.awk"
set_run_env "num_uarts" "2"
diff --git a/run_config/fvp-tftf.rme b/run_config/fvp-tftf.rme
index 185c1ea..48e3921 100644
--- a/run_config/fvp-tftf.rme
+++ b/run_config/fvp-tftf.rme
@@ -1,6 +1,6 @@
#!/usr/bin/env bash
#
-# Copyright (c) 2021, Arm Limited. All rights reserved.
+# Copyright (c) 2021-2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
@@ -31,6 +31,7 @@
amu_present="1" \
has_rme="1" \
has_smmuv3_params="1" \
+ memory_tagging_support_level="2" \
gen_model_params
model="$model" gen_fvp_yaml