X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Farm720t.c;h=0ea6cb2b0e211559d04983728fa18e094842c33b;hb=2319caff7d9ddf27311a9d592f6d143d71cd5602;hp=867eb94237fdd91f0b6d0b1b9d516b8095daf669;hpb=0538081246fafbfb74d554bb1b758412534aa254;p=openocd.git diff --git a/src/target/arm720t.c b/src/target/arm720t.c index 867eb94237..0ea6cb2b0e 100644 --- a/src/target/arm720t.c +++ b/src/target/arm720t.c @@ -41,7 +41,7 @@ #endif static int arm720t_scan_cp15(struct target *target, - uint32_t out, uint32_t *in, int instruction, int clock) + uint32_t out, uint32_t *in, int instruction, int clock_arg) { int retval; struct arm720t_common *arm720t = target_to_arm720(target); @@ -81,7 +81,7 @@ static int arm720t_scan_cp15(struct target *target, jtag_add_dr_scan(jtag_info->tap, 2, fields, TAP_DRPAUSE); } - if (clock) + if (clock_arg) jtag_add_runtest(0, TAP_DRPAUSE); #ifdef _DEBUG_INSTRUCTION_EXECUTION_ @@ -93,9 +93,9 @@ static int arm720t_scan_cp15(struct target *target, if (in) LOG_DEBUG("out: %8.8x, in: %8.8x, instruction: %i, clock: %i", out, *in, instruction, clock); else - LOG_DEBUG("out: %8.8x, instruction: %i, clock: %i", out, instruction, clock); + LOG_DEBUG("out: %8.8x, instruction: %i, clock: %i", out, instruction, clock_arg); #else - LOG_DEBUG("out: %8.8" PRIx32 ", instruction: %i, clock: %i", out, instruction, clock); + LOG_DEBUG("out: %8.8" PRIx32 ", instruction: %i, clock: %i", out, instruction, clock_arg); #endif return ERROR_OK; @@ -254,20 +254,14 @@ static int arm720_mmu(struct target *target, int *enabled) static int arm720_virt2phys(struct target *target, uint32_t virtual, uint32_t *physical) { - int type; uint32_t cb; - int domain; - uint32_t ap; struct arm720t_common *arm720t = target_to_arm720(target); uint32_t ret; - int retval = armv4_5_mmu_translate_va(target, &arm720t->armv4_5_mmu, virtual, &type, &cb, &domain, &ap, &ret); + int retval = armv4_5_mmu_translate_va(target, + &arm720t->armv4_5_mmu, virtual, &cb, &ret); if (retval != ERROR_OK) return retval; - if (type == -1) - { - return ret; - } *physical = ret; return ERROR_OK; }