]> git.sur5r.net Git - openocd/commitdiff
arm11: fix gaffe in no-ack transfers
authorØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 23 Jun 2010 08:47:54 +0000 (10:47 +0200)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Wed, 23 Jun 2010 09:10:30 +0000 (11:10 +0200)
The code did not transfer the last word in no-ack transfers.

The strange thing is that this did not lead to any
observable errors.

This gaffe was introduced in commit 1f5883ea56cb058221f

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/target/arm11_dbgtap.c

index 9ecd08f78c3932e974e1ed2f1f8c7342566754b5..b2c6287fe16730b87e9b0f524144ffab70f447d0 100644 (file)
@@ -679,7 +679,7 @@ int arm11_run_instr_data_to_core_noack(struct arm11_common * arm11, uint32_t opc
 
        int retval = arm11_run_instr_data_to_core_noack_inner(arm11->arm.target->tap, opcode, data, count);
 
-       if (retval != ERROR_FAIL)
+       if (retval != ERROR_OK)
                return retval;
 
        arm11_add_IR(arm11, ARM11_INTEST, ARM11_TAP_DEFAULT);