blob: 6b0facece187819191ca8c47dde0c3f1103ba009 [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) 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 a data abort.
12 apply_tf_patch "readonly_xlat_tables/arm_sp_min_setup_write_after_readonly.patch"
13 # Apply patch which allows a 'Panic at PC:...' message to be printed
14 # when the data abort happens.
15 apply_tf_patch "readonly_xlat_tables/sp_min_data_abort_print_panic_message.patch"
16}
17
Chris Kay4e8aaf12022-09-01 15:21:55 +010018generate_lava_job() {
19 local model="base-aemv8a"
Leonardo Sandoval1240a0a2020-10-27 11:27:11 -060020
Zelaleme9e81482020-07-10 15:18:46 -050021 uart="0" timeout="60" file="timeout_spmin_roxlattables.exp" track_expect
Chris Kay62b4f782022-11-10 12:50:43 +000022 uart="1" timeout="60" file="crash_panic.exp" set_primary="1" track_expect
Chris Kay4e8aaf12022-09-01 15:21:55 +010023
24 model="$model" aarch32="1" gen_model_params
25 model="$model" gen_fvp_yaml
Zelaleme9e81482020-07-10 15:18:46 -050026}