The jtag_add_xxx() fn's modifies the global end state. It would be better to clearly separate the global end state concept and scan operations.
I.e. jtag_add_dr_scan(...., TAP_IDLE); is 100% equivalent to: jtag_add_end_state(TAP_IDLE); jtag_add_dr_scan(..., TAP_INVALID); I would like to make all the lower level jtag_add_xxx() fn's not modify the global end state. The way I propose to do this is in two stages: 1. Write a small sed script to rewrite all calls as: jtag_add_dr_scan(...., jtag_add_end_state(TAP_IDLE)); This also works for: jtag_add_dr_scan(...., jtag_add_end_state(TAP_INVALID)); 2. Modify jtag_add_xxx() calls not to modify the global end state. This is bug-by-bug compatible and purely mechanical. Any objections? -- Ø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
