blob: 73c056773566eb23a3c45f527f3141d8535dcea5 [file] [log] [blame]
#!/usr/bin/env bash
#
# Copyright (c) 2022, Arm Limited. All rights reserved.
#
# SPDX-License-Identifier: BSD-3-Clause
#
pre_tf_build() {
# Apply a patch which attempts to write to the translation tables (by
# changing the memory attributes of a region) immediately after the
# translation tables have been made read-only, triggering a data abort.
apply_tf_patch "readonly_xlat_tables/arm_sp_min_setup_write_after_readonly.patch"
# Apply patch which allows a 'Panic at PC:...' message to be printed
# when the data abort happens.
apply_tf_patch "readonly_xlat_tables/sp_min_data_abort_print_panic_message.patch"
}
generate_lava_job() {
local model="base-aemv8a"
uart="0" timeout="60" file="timeout_spmin_roxlattables.exp" track_expect
uart="1" timeout="60" file="crash_panic.exp" track_expect
model="$model" aarch32="1" gen_model_params
model="$model" gen_fvp_yaml
}