aarch64: remove armv7-a virt-to-phys code

Page table layout in aarch64 is very different from armv7-a layout.
Remove the incorrect handling, to be replaced correct armv8 code in a
later patch

Change-Id: I64c728a72a24f9f4177726ccc07a02a8ca0d56ce
Signed-off-by: Matthias Welwarsky <matthias.welwarsky@sysgo.com>
This commit is contained in:
Matthias Welwarsky
2016-09-16 15:18:47 +02:00
parent 667c1d0d16
commit 03861123d7
3 changed files with 27 additions and 93 deletions

View File

@@ -2623,12 +2623,8 @@ static int aarch64_virt2phys(struct target *target, target_addr_t virt,
if (retval != ERROR_OK)
goto done;
*phys = ret;
} else {/* use this method if armv8->memory_ap not selected
* mmu must be enable in order to get a correct translation */
retval = aarch64_mmu_modify(target, 1);
if (retval != ERROR_OK)
goto done;
retval = armv8_mmu_translate_va_pa(target, virt, phys, 1);
} else {
LOG_ERROR("AAR64 processor not support translate va to pa");
}
done:
return retval;