]> git.sur5r.net Git - openocd/blobdiff - src/target/armv4_5_mmu.c
retire unused code.
[openocd] / src / target / armv4_5_mmu.c
index b888933c5a8487f75981fae55d16e86a395bfdcd..9c6d12e382005f6b72ee5eaeb0dc50e61f6e2dd5 100644 (file)
@@ -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;
 }