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:
@@ -46,7 +46,7 @@ int interface_jtag_execute_queue(void)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
int interface_jtag_add_ir_scan(int num_fields, const struct scan_field *fields, tap_state_t state)
|
||||
int interface_jtag_add_ir_scan(struct jtag_tap *active, int num_fields, const struct scan_field *fields, tap_state_t state)
|
||||
{
|
||||
/* synchronously do the operation here */
|
||||
|
||||
@@ -61,7 +61,7 @@ int interface_jtag_add_plain_ir_scan(int num_fields, const struct scan_field *fi
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
int interface_jtag_add_dr_scan(int num_fields, const struct scan_field *fields, tap_state_t state)
|
||||
int interface_jtag_add_dr_scan(struct jtag_tap *active, int num_fields, const struct scan_field *fields, tap_state_t state)
|
||||
{
|
||||
/* synchronously do the operation here */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user