jtag_add_pathmove() is not a high performance API, so here runtime (debugging or otherwise) checks do not really affect anything much.
A better example would be jtag_add_dr_out(). Here I don't want lots of runtime checks as this is used in the innermost loops. All checks on userdata must happen higher up. I'm hesitant to add *lots* of checks to jtag_add_*_scan(). There needs to be a sanity checking wrapper for those fn's if you want to pass through data from the outside world. Generally I want checks as far down as possible, until they start causing performance problems. Since OpenOCD supports embedded targets, the this means we can't push them too far down. -- Øyvind Harboe Embedded software and hardware consulting services http://consulting.zylin.com _______________________________________________ Openocd-development mailing list [email protected] https://lists.berlios.de/mailman/listinfo/openocd-development
