Seems I5347352e7595686634bd0de13fcf6de6e55027b0 introduced an issue when
reading 8/16 bit data - the in buffer was always set to 32bits.
Change-Id: Ife2bb6a20fcb3ec0e486655512164f25ae9196b4
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/660
Tested-by: jenkins
Reviewed-by: Mathias Küster <kesmtp@freenet.de>
fields[0].out_value = NULL;
fields[0].in_value = NULL;
- fields[1].num_bits = 32;
+ fields[1].num_bits = size * 8;
fields[1].out_value = NULL;
fields[1].in_value = in;
if (retval != ERROR_OK)
return retval;
- fields[0].num_bits = 32;
+ fields[0].num_bits = size * 8;
fields[0].out_value = NULL;
fields[0].in_value = in;