fix(lib/xlat): xlat_get_llt_from_va() returns the wrong base_va
xlat_get_llt_from_va() should populate xlat_llt_info struct with the
base VA mapped on the table being returned but instead, it populates
it with the context VA address.
This patch fixes that, as well as it renames some APIs and structures
in order to better reflect their purpose. In addition to that, it
also introduces some refactoring to improve performance related
to xlat_get_tte_ptr() API.
Signed-off-by: Javier Almansa Sobrino <javier.almansasobrino@arm.com>
Change-Id: I1b16518d11b5427f3c5e02feb32e3ed9deb4e3e4
diff --git a/lib/realm/tests/realm_test_utils.c b/lib/realm/tests/realm_test_utils.c
index 0af8b47..7ca2bc7 100644
--- a/lib/realm/tests/realm_test_utils.c
+++ b/lib/realm/tests/realm_test_utils.c
@@ -17,7 +17,7 @@
*/
uintptr_t realm_test_util_slot_to_pa(enum buffer_slot slot)
{
- struct xlat_tbl_info *entry = get_cached_tbl_info();
+ struct xlat_llt_info *entry = get_cached_llt_info();
uintptr_t va = slot_to_va(slot);
uint64_t *desc_ptr = xlat_get_tte_ptr(entry, va);
uint64_t descriptor = xlat_read_tte(desc_ptr);