summaryrefslogtreecommitdiff
path: root/src/jtag/zy1000.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-02 08:04:21 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-02 08:04:21 +0000
commit1d230b88d2079e4303816452b04d00da5a94756f (patch)
tree41aea6bc818816cb9a429f563b02ba2b2265e8e6 /src/jtag/zy1000.c
parent6625e926fd515bd3cb91fb062d4375a8a618960c (diff)
downloadopenocd_libswd-1d230b88d2079e4303816452b04d00da5a94756f.tar.gz
openocd_libswd-1d230b88d2079e4303816452b04d00da5a94756f.tar.bz2
openocd_libswd-1d230b88d2079e4303816452b04d00da5a94756f.tar.xz
openocd_libswd-1d230b88d2079e4303816452b04d00da5a94756f.zip
Move interface_jtag_add_scan_check_alloc implementations to their
respective implementation files. git-svn-id: svn://svn.berlios.de/openocd/trunk@1999 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/jtag/zy1000.c')
-rw-r--r--src/jtag/zy1000.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/jtag/zy1000.c b/src/jtag/zy1000.c
index cfe40f4c..788f379d 100644
--- a/src/jtag/zy1000.c
+++ b/src/jtag/zy1000.c
@@ -380,6 +380,18 @@ int zy1000_quit(void)
}
+void interface_jtag_add_scan_check_alloc(scan_field_t *field)
+{
+ /* We're executing this synchronously, so try to use local storage. */
+ if (field->num_bits > 32)
+ {
+ unsigned num_bytes = TAP_SCAN_BYTES(field->num_bits);
+ field->in_value = (u8 *)malloc(num_bytes);
+ field->allocated = 1;
+ }
+ else
+ field->in_value = field->intmp;
+}
int interface_jtag_execute_queue(void)