Leonardo Sandoval | 9dfdd1b | 2020-08-06 17:08:11 -0500 | [diff] [blame] | 1 | #!/usr/bin/env bash |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 2 | # |
Chris Kay | 4e8aaf1 | 2022-09-01 15:21:55 +0100 | [diff] [blame] | 3 | # Copyright (c) 2020-2022, Arm Limited. All rights reserved. |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 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 a synchronous |
| 12 | # exception. |
| 13 | apply_tf_patch "readonly_xlat_tables/arm_tsp_setup_write_after_readonly.patch" |
| 14 | # Apply patch which allows a 'Panic at PC:...' message to be printed |
| 15 | # when the synchronous exception happens. |
| 16 | apply_tf_patch "readonly_xlat_tables/tsp_sync_exception_print_panic_message.patch" |
| 17 | } |
| 18 | |
Chris Kay | 4e8aaf1 | 2022-09-01 15:21:55 +0100 | [diff] [blame] | 19 | generate_lava_job() { |
| 20 | local model="base-aemv8a" |
Leonardo Sandoval | 1240a0a | 2020-10-27 11:27:11 -0600 | [diff] [blame] | 21 | |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 22 | uart="0" timeout="60" file="timeout.exp" track_expect |
Chris Kay | b85f977 | 2022-11-10 12:50:43 +0000 | [diff] [blame] | 23 | uart="1" timeout="60" file="crash_panic.exp" set_primary="1" track_expect |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 24 | uart="2" timeout="60" file="readonly_el1_xlat_tables.exp" track_expect |
Chris Kay | 4e8aaf1 | 2022-09-01 15:21:55 +0100 | [diff] [blame] | 25 | |
| 26 | model="$model" gen_model_params |
| 27 | model="$model" gen_fvp_yaml |
Zelalem | e9e8148 | 2020-07-10 15:18:46 -0500 | [diff] [blame] | 28 | } |