feat(rmi): add support for FEAT_LPA2 to the Realm Extension tests
This patch adds support to the current Realm Extension tests to
enable and use 52 bit address size with 4KB granularity when
FEAT_LPA2 is present.
In addition, this patch also introduces changes to support passing the
starting RTT level and the FEAT_LPA2 enable flag during realm creation
so they can be used later to implement tests for FEAT_LPA2 on RMI.
Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
Change-Id: I0a930735a44772e5e76d6608c969759f27129917
diff --git a/include/lib/xlat_tables/xlat_tables_defs.h b/include/lib/xlat_tables/xlat_tables_defs.h
index ba0559c..c9b91cc 100644
--- a/include/lib/xlat_tables/xlat_tables_defs.h
+++ b/include/lib/xlat_tables/xlat_tables_defs.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017-2022, ARM Limited and Contributors. All rights reserved.
+ * Copyright (c) 2017-2024, ARM Limited and Contributors. All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
@@ -196,7 +196,7 @@
* For Normal WB cacheability attribute, set bit[4] to 1 and bits[3:2] to 0b10.
*/
#define S2TTE_MEMATTR_FWB_NORMAL_WB ((1UL << 4) | (2UL << 2))
-#define S2TTE_ATTR_FWB_WB_RW (S2TTE_MEMATTR_FWB_NORMAL_WB | S2TTE_AP_RW | \
- S2TTE_SH_IS)
+#define S2TTE_ATTR_FWB_WB_RW_LPA2 (S2TTE_MEMATTR_FWB_NORMAL_WB | S2TTE_AP_RW)
+#define S2TTE_ATTR_FWB_WB_RW (S2TTE_ATTR_FWB_WB_RW_LPA2 | S2TTE_SH_IS)
#endif /* XLAT_TABLES_DEFS_H */