diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2010-06-12 11:58:50 +0800 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-06-12 12:08:12 +0200 |
commit | 9e62f86f24dbd1a3f8d1a84fbfd18dc15dc23002 (patch) | |
tree | 4b8c5e1e11ed3a5c43b099b4502be81f9831517b /src/target/arm920t.c | |
parent | ce58ab9a4ef7f014eac4d2e30d2b54b2c3e53895 (diff) | |
download | riscv-openocd-9e62f86f24dbd1a3f8d1a84fbfd18dc15dc23002.zip riscv-openocd-9e62f86f24dbd1a3f8d1a84fbfd18dc15dc23002.tar.gz riscv-openocd-9e62f86f24dbd1a3f8d1a84fbfd18dc15dc23002.tar.bz2 |
TARGET: removed unsed parameter
Parameter "type" of function armv4_5_mmu_translate_va()
is now not used.
Remove the parameter and the "enum" listing its values.
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, 2 insertions, 4 deletions
diff --git a/src/target/arm920t.c b/src/target/arm920t.c index fe2ff01..b8ff819 100644 --- a/src/target/arm920t.c +++ b/src/target/arm920t.c @@ -508,7 +508,6 @@ static int arm920_mmu(struct target *target, int *enabled) static int arm920_virt2phys(struct target *target, uint32_t virt, uint32_t *phys) { - int type; uint32_t cb; int domain; uint32_t ap; @@ -516,7 +515,7 @@ static int arm920_virt2phys(struct target *target, uint32_t ret; int retval = armv4_5_mmu_translate_va(target, - &arm920t->armv4_5_mmu, virt, &type, &cb, &domain, &ap, &ret); + &arm920t->armv4_5_mmu, virt, &cb, &domain, &ap, &ret); if (retval != ERROR_OK) return retval; *phys = ret; @@ -579,7 +578,6 @@ int arm920t_write_memory(struct target *target, uint32_t address, * in memory marked read only * by MMU */ - int type; uint32_t cb; int domain; uint32_t ap; @@ -589,7 +587,7 @@ int arm920t_write_memory(struct target *target, uint32_t address, * We need physical address and cb */ retval = armv4_5_mmu_translate_va(target, &arm920t->armv4_5_mmu, - address, &type, &cb, &domain, &ap, &pa); + address, &cb, &domain, &ap, &pa); if (retval != ERROR_OK) return retval; |