From f133158175b568b9355e1bb3da159fd235723dec Mon Sep 17 00:00:00 2001 From: oharboe Date: Thu, 4 Jun 2009 13:14:07 +0000 Subject: Introduce jtag_get_end_state() fn to clarify code a bit. git-svn-id: svn://svn.berlios.de/openocd/trunk@2049 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/target/etm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/target/etm.c') diff --git a/src/target/etm.c b/src/target/etm.c index 50bfa159..22b50d76 100644 --- a/src/target/etm.c +++ b/src/target/etm.c @@ -347,13 +347,13 @@ int etm_read_reg_w_check(reg_t *reg, u8* check_value, u8* check_mask) fields[2].check_value = NULL; fields[2].check_mask = NULL; - jtag_add_dr_scan(3, fields, jtag_add_end_state(TAP_INVALID)); + jtag_add_dr_scan(3, fields, jtag_get_end_state()); fields[0].in_value = reg->value; fields[0].check_value = check_value; fields[0].check_mask = check_mask; - jtag_add_dr_scan_check(3, fields, jtag_add_end_state(TAP_INVALID)); + jtag_add_dr_scan_check(3, fields, jtag_get_end_state()); free(fields[1].out_value); free(fields[2].out_value); @@ -430,7 +430,7 @@ int etm_write_reg(reg_t *reg, u32 value) buf_set_u32(fields[2].out_value, 0, 1, 1); fields[2].in_value = NULL; - jtag_add_dr_scan(3, fields, jtag_add_end_state(TAP_INVALID)); + jtag_add_dr_scan(3, fields, jtag_get_end_state()); return ERROR_OK; } -- cgit v1.2.3