jtag: retire tap field
jtag_add_dr/ir_scan() now takes the tap as the first argument, rather than for each of the fields passed in. The code never exercised the path where there was more than one tap being scanned, who knows if it even worked. This simplifies the implementation and reduces clutter in the calling code. use jtag_add_ir/dr_plain_scan() for more fancy situations. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
@@ -64,12 +64,10 @@ static int arm720t_scan_cp15(struct target *target,
|
||||
return retval;
|
||||
}
|
||||
|
||||
fields[0].tap = jtag_info->tap;
|
||||
fields[0].num_bits = 1;
|
||||
fields[0].out_value = &instruction_buf;
|
||||
fields[0].in_value = NULL;
|
||||
|
||||
fields[1].tap = jtag_info->tap;
|
||||
fields[1].num_bits = 32;
|
||||
fields[1].out_value = out_buf;
|
||||
fields[1].in_value = NULL;
|
||||
@@ -77,11 +75,11 @@ static int arm720t_scan_cp15(struct target *target,
|
||||
if (in)
|
||||
{
|
||||
fields[1].in_value = (uint8_t *)in;
|
||||
jtag_add_dr_scan(2, fields, jtag_get_end_state());
|
||||
jtag_add_dr_scan(jtag_info->tap, 2, fields, jtag_get_end_state());
|
||||
jtag_add_callback(arm7flip32, (jtag_callback_data_t)in);
|
||||
} else
|
||||
{
|
||||
jtag_add_dr_scan(2, fields, jtag_get_end_state());
|
||||
jtag_add_dr_scan(jtag_info->tap, 2, fields, jtag_get_end_state());
|
||||
}
|
||||
|
||||
if (clock)
|
||||
|
||||
Reference in New Issue
Block a user