blob: 9505770199f4af497807bdb06350fd7bef823321 [file] [log] [blame]
Leonardo Sandoval9dfdd1b2020-08-06 17:08:11 -05001#!/usr/bin/env bash
Zelaleme9e81482020-07-10 15:18:46 -05002#
Chris Kay4e8aaf12022-09-01 15:21:55 +01003# Copyright (c) 2020-2022, Arm Limited. All rights reserved.
Zelaleme9e81482020-07-10 15:18:46 -05004#
5# SPDX-License-Identifier: BSD-3-Clause
6#
7
8pre_tf_build() {
9 # Apply a patch which attempts to write to the translation tables (by
10 # changing the memory attributes of a region) immediately after the
11 # translation tables have been made read-only, triggering an unhandled
12 # exception at EL3.
13 apply_tf_patch "readonly_xlat_tables/arm_bl31_setup_write_after_readonly.patch"
14}
15
Chris Kay4e8aaf12022-09-01 15:21:55 +010016generate_lava_job() {
17 local model="base-aemv8a"
18
Manish V Badarkhe615f8992024-03-05 18:24:48 +000019 uart="0" timeout="60" file="roxlattables.exp" track_expect
Chris Kay62b4f782022-11-10 12:50:43 +000020 uart="1" timeout="60" file="crash_roxlattables_unhandled_exception_at_el3.exp" \
21 set_primary="1" track_expect
Leonardo Sandoval1240a0a2020-10-27 11:27:11 -060022
Leonardo Sandoval00ced1f2020-12-07 12:55:08 -060023 model="$model" gen_model_params
24 model="$model" gen_fvp_yaml
Zelaleme9e81482020-07-10 15:18:46 -050025}