summaryrefslogtreecommitdiff
path: root/src/target/armv4_5_mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/armv4_5_mmu.c')
-rw-r--r--src/target/armv4_5_mmu.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/target/armv4_5_mmu.c b/src/target/armv4_5_mmu.c
index b888933c..9c6d12e3 100644
--- a/src/target/armv4_5_mmu.c
+++ b/src/target/armv4_5_mmu.c
@@ -54,12 +54,14 @@ u32 armv4_5_mmu_translate_va(target_t *target, armv4_5_mmu_common_t *armv4_5_mmu
if ((first_lvl_descriptor & 0x3) == 0)
{
*type = -1;
+ ERROR("Address translation failure");
return ERROR_TARGET_TRANSLATION_FAULT;
}
if (!armv4_5_mmu->has_tiny_pages && ((first_lvl_descriptor & 0x3) == 3))
{
*type = -1;
+ ERROR("Address translation failure");
return ERROR_TARGET_TRANSLATION_FAULT;
}
@@ -97,6 +99,7 @@ u32 armv4_5_mmu_translate_va(target_t *target, armv4_5_mmu_common_t *armv4_5_mmu
if ((second_lvl_descriptor & 0x3) == 0)
{
*type = -1;
+ ERROR("Address translation failure");
return ERROR_TARGET_TRANSLATION_FAULT;
}
@@ -129,6 +132,7 @@ u32 armv4_5_mmu_translate_va(target_t *target, armv4_5_mmu_common_t *armv4_5_mmu
/* should not happen */
*type = -1;
+ ERROR("Address translation failure");
return ERROR_TARGET_TRANSLATION_FAULT;
}