mardyk01 | b5002ac | 2023-07-21 17:11:14 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
| 2 | # |
| 3 | # Copyright (c) 2023, Arm Limited. All rights reserved. |
| 4 | # |
| 5 | # SPDX-License-Identifier: BSD-3-Clause |
| 6 | # |
| 7 | |
| 8 | pre_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 | |
| 16 | generate_lava_job() { |
| 17 | local model="base-aemv8a" |
| 18 | |
| 19 | uart="0" timeout="60" file="timeout.exp" track_expect |
| 20 | uart="1" timeout="60" file="crash_roxlattables_unhandled_exception_at_el3.exp" \ |
| 21 | set_primary="1" track_expect |
| 22 | |
| 23 | model="$model" bmcov_plugin="1" \ |
| 24 | bmcov_plugin_path="${coverage_trace_plugin}" \ |
| 25 | gen_model_params |
| 26 | model="$model" gen_fvp_yaml |
| 27 | } |