diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2010-06-12 11:46:56 +0800 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-12 12:08:06 +0200 |
commit | ce58ab9a4ef7f014eac4d2e30d2b54b2c3e53895 (patch) | |
tree | c77cbe47dd7e482ec8b7d35a2c0c0300109d2e28 /src/target/arm920t.c | |
parent | dcc7de4f9b4dfa58ed8a8712c4c146a3c83aba17 (diff) |
TARGET: fix handling return code of MMU translation
Function armv4_5_mmu_translate_va() now properly signals
errors in the return value.
Remove former error handling by setting variable "type" to
value "-1".
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/target/arm920t.c')
-rw-r--r-- | src/target/arm920t.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/target/arm920t.c b/src/target/arm920t.c index d7096486..fe2ff015 100644 --- a/src/target/arm920t.c +++ b/src/target/arm920t.c @@ -519,10 +519,6 @@ static int arm920_virt2phys(struct target *target, &arm920t->armv4_5_mmu, virt, &type, &cb, &domain, &ap, &ret); if (retval != ERROR_OK) return retval; - if (type == -1) - { - return ret; - } *phys = ret; return ERROR_OK; } @@ -596,8 +592,6 @@ int arm920t_write_memory(struct target *target, uint32_t address, address, &type, &cb, &domain, &ap, &pa); if (retval != ERROR_OK) return retval; - if (type == -1) - return pa; if (arm920t->armv4_5_mmu.armv4_5_cache.d_u_cache_enabled) { |