diff options
author | Øyvind Harboe <oyvind.harboe@zylin.com> | 2011-12-13 23:44:34 +0100 |
---|---|---|
committer | Spencer Oliver <spen@spen-soft.co.uk> | 2011-12-20 16:57:34 +0000 |
commit | a30a4f0fc76b72936a6557e08d6b55b3a46eaafd (patch) | |
tree | e552caa91437102da07fc33d1e748f0fce25d62b /src/jtag/minidriver | |
parent | cb90d32e386a7489d31136997209c61e9559ff5e (diff) | |
download | riscv-openocd-a30a4f0fc76b72936a6557e08d6b55b3a46eaafd.zip riscv-openocd-a30a4f0fc76b72936a6557e08d6b55b3a46eaafd.tar.gz riscv-openocd-a30a4f0fc76b72936a6557e08d6b55b3a46eaafd.tar.bz2 |
jtag: make caller always allocate buffer
simplifies the API and there is only one remaining user at this point.
Is the implementation busted where the check does not actually happen
now?
Change-Id: I776a43766f5576a08df320f6fe41a2750d101bde
Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
Reviewed-on: http://openocd.zylin.com/264
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/jtag/minidriver')
-rw-r--r-- | src/jtag/minidriver/minidriver_imp.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/jtag/minidriver/minidriver_imp.h b/src/jtag/minidriver/minidriver_imp.h index b6cdbea..98d87fe 100644 --- a/src/jtag/minidriver/minidriver_imp.h +++ b/src/jtag/minidriver/minidriver_imp.h @@ -23,24 +23,6 @@ #include <jtag/jtag_minidriver.h> -static inline void interface_jtag_alloc_in_value32(struct scan_field *field) -{ - field->in_value = field->intmp; -} - -static inline void interface_jtag_add_scan_check_alloc(struct scan_field *field) -{ - /* We're executing this synchronously, so try to use local storage. */ - if (field->num_bits > 32) - { - unsigned num_bytes = DIV_ROUND_UP(field->num_bits, 8); - field->in_value = (uint8_t *)malloc(num_bytes); - field->allocated = 1; - } - else - field->in_value = field->intmp; -} - static inline void jtag_add_dr_out(struct jtag_tap* tap, int num_fields, const int* num_bits, const uint32_t* value, tap_state_t end_state) |