Sona Mathew | d28f855 | 2023-03-14 17:58:13 -0500 | [diff] [blame] | 1 | # |
| 2 | # Copyright (c) 2023, Arm Limited and Contributors. All rights reserved. |
| 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
| 7 | |
| 8 | #/* |
| 9 | # * TODO: below lines of code to be removed |
| 10 | # * after abi and framework are synchronized |
| 11 | # */ |
| 12 | |
| 13 | ifeq (${ERRATA_ABI_SUPPORT}, 1) |
| 14 | # enable the cpu macros for errata abi interface |
| 15 | ifeq (${ARCH}, aarch64) |
| 16 | ifeq (${HW_ASSISTED_COHERENCY}, 0) |
| 17 | CORTEX_A35_H_INC := 1 |
| 18 | CORTEX_A53_H_INC := 1 |
| 19 | CORTEX_A57_H_INC := 1 |
| 20 | CORTEX_A72_H_INC := 1 |
| 21 | CORTEX_A73_H_INC := 1 |
| 22 | $(eval $(call add_define, CORTEX_A35_H_INC)) |
| 23 | $(eval $(call add_define, CORTEX_A53_H_INC)) |
| 24 | $(eval $(call add_define, CORTEX_A57_H_INC)) |
| 25 | $(eval $(call add_define, CORTEX_A72_H_INC)) |
| 26 | $(eval $(call add_define, CORTEX_A73_H_INC)) |
| 27 | else |
| 28 | ifeq (${CTX_INCLUDE_AARCH32_REGS}, 0) |
| 29 | CORTEX_A76_H_INC := 1 |
| 30 | CORTEX_A77_H_INC := 1 |
| 31 | CORTEX_A78_H_INC := 1 |
| 32 | NEOVERSE_N1_H_INC := 1 |
| 33 | NEOVERSE_V1_H_INC := 1 |
| 34 | CORTEX_A78_AE_H_INC := 1 |
| 35 | CORTEX_A510_H_INC := 1 |
| 36 | CORTEX_A710_H_INC := 1 |
| 37 | CORTEX_A715_H_INC := 1 |
| 38 | CORTEX_A78C_H_INC := 1 |
| 39 | CORTEX_X2_H_INC := 1 |
| 40 | $(eval $(call add_define, CORTEX_A76_H_INC)) |
| 41 | $(eval $(call add_define, CORTEX_A77_H_INC)) |
| 42 | $(eval $(call add_define, CORTEX_A78_H_INC)) |
| 43 | $(eval $(call add_define, NEOVERSE_N1_H_INC)) |
| 44 | $(eval $(call add_define, NEOVERSE_V1_H_INC)) |
| 45 | $(eval $(call add_define, CORTEX_A78_AE_H_INC)) |
| 46 | $(eval $(call add_define, CORTEX_A510_H_INC)) |
| 47 | $(eval $(call add_define, CORTEX_A710_H_INC)) |
| 48 | $(eval $(call add_define, CORTEX_A715_H_INC)) |
| 49 | $(eval $(call add_define, CORTEX_A78C_H_INC)) |
| 50 | $(eval $(call add_define, CORTEX_X2_H_INC)) |
| 51 | endif |
| 52 | CORTEX_A55_H_INC := 1 |
| 53 | CORTEX_A75_H_INC := 1 |
| 54 | $(eval $(call add_define, CORTEX_A55_H_INC)) |
| 55 | $(eval $(call add_define, CORTEX_A75_H_INC)) |
| 56 | endif |
| 57 | else |
| 58 | CORTEX_A32_H_INC := 1 |
| 59 | $(eval $(call add_define, CORTEX_A32_H_INC)) |
| 60 | endif |
| 61 | endif |