Target/host big/small endianness and bit reversal is actually somewhat of a red herring in this discussion.
jtag_add_dr_scan() scans an array of bits in/out. These bits are represented as an array of integers where lsb is shifted out first. lsb vs. msb is unambigious w.r.t. host endiannes/bit order. Once an int in that array is exhausted, the next int is shifted out lsb first. The total # of bits to shift out is num_fields. Ditto for in_value. I'm suggesting that 32 bits is a more natural fit for openocd code than 8. host / target big/small endian and bit reversal does not enter into the picture for the 32 or 8 bit version of jtag_add_dr_scan(). ? -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development