X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Fferoceon.c;h=ccf32d8c680c1cc641b8eb3d54c811573a6c91b9;hb=4e7ec0893969bda2ee77cb89617f909a45e8ff0f;hp=08512a4b816ae37bed62c7699f33933d67a3c15f;hpb=6853abeb901960c31a20eedf469b6dcb5c45dd56;p=openocd.git diff --git a/src/target/feroceon.c b/src/target/feroceon.c index 08512a4b81..ccf32d8c68 100644 --- a/src/target/feroceon.c +++ b/src/target/feroceon.c @@ -135,36 +135,36 @@ int feroceon_dummy_clock_out(arm_jtag_t *jtag_info, u32 instr) fields[0].tap = jtag_info->tap; fields[0].num_bits = 32; fields[0].out_value = out_buf; - fields[0].out_mask = NULL; + fields[0].in_value = NULL; - fields[0].in_handler = NULL; - fields[0].in_handler_priv = NULL; - fields[0].in_check_value = NULL; - fields[0].in_check_mask = NULL; + + + + fields[1].tap = jtag_info->tap; fields[1].num_bits = 3; fields[1].out_value = &sysspeed_buf; - fields[1].out_mask = NULL; + fields[1].in_value = NULL; - fields[1].in_check_value = NULL; - fields[1].in_check_mask = NULL; - fields[1].in_handler = NULL; - fields[1].in_handler_priv = NULL; + + + + fields[2].tap = jtag_info->tap; fields[2].num_bits = 32; fields[2].out_value = instr_buf; - fields[2].out_mask = NULL; + fields[2].in_value = NULL; - fields[2].in_check_value = NULL; - fields[2].in_check_mask = NULL; - fields[2].in_handler = NULL; - fields[2].in_handler_priv = NULL; + + + + - jtag_add_dr_scan(3, fields, -1); + jtag_add_dr_scan(3, fields, TAP_INVALID); - /* no jtag_add_runtest(0, -1) here */ + /* no jtag_add_runtest(0, TAP_INVALID) here */ return ERROR_OK; } @@ -517,7 +517,7 @@ int feroceon_bulk_write_memory(target_t *target, u32 address, u32 count, u8 *buf arm7_9_common_t *arm7_9 = armv4_5->arch_info; enum armv4_5_state core_state = armv4_5->core_state; u32 x, flip, shift, save[7]; - int i; + u32 i; /* * We can't use the dcc flow control bits, so let's transfer data @@ -547,7 +547,7 @@ int feroceon_bulk_write_memory(target_t *target, u32 address, u32 count, u8 *buf 0xeafffff3, /* b 3b */ }; - int dcc_size = sizeof(dcc_code); + u32 dcc_size = sizeof(dcc_code); if (!arm7_9->dcc_downloads) return target->type->write_memory(target, address, 4, count, buffer);