Given this explanation, I am tempted to take your original patch (w/ optimization), as John Devereux tested it and reported his success.
I think some additional reasoning supports this decision. If the optimization had resulted from other motives, I would be more skeptical; the fact that it derived from a bug hunt reflects reasonable motivation. Since the minimal patch has been confirmed to fix a long-outstanding bug, the very presence of such a bug (and the correctness of the fix) lends credibility to the notion that the optimization will be correct. In any event, the consequences will be limited to this one interface and will be easy to revert, if it is proven to be wrong. With all of this in mind, I am willing to wager that your patch is correct in its entirety and accept it for 0.2.0. Since I am still working out details relating to the release process, I will give this patch a little more time to percolate before committing it. Does anyone find fault in my assessment of the situation, to the extent that you object to taking the original patch as it was posted by Ferdinand on Friday? Cheers, Zach On Mon, 2009-07-06 at 00:18 +0200, Ferdinand Postema wrote: > Sorry, I have to learn to post messages as plaint-text and not as html! > > It is not possible to match the private table to the table used by other > interfaces, because the code can only send 5 or 10 bits. I think my > patch (including the optimization) brings the private table closer to > the table used by other interfaces. The best option is to change the > code to use the same table as the other interfaces. I am working on that > option, but I think it will not be finished and tested before the 0.2.0 > release. > > Comparison of the TMS bitstreams: > from to std. opt. min.change > ----- ------- ------- ----- ---------- > RESET DRSHIFT 0010111 00101 0100001010 > IDLE DRSHIFT 001 00100 0100000101 > IDLE IRSHIFT 0011 00110 0100001011 > > Cheers, > > Ferdinand Postema > > > Zach Welch schreef: > > Can some folks do a quick comparisons of the two tables and tell me > > which patch (minimal or w/ optimization) brings the private table closer > > in alignment with the main table? > > > > At minimum, it seems like we should take the minimal patch for 0.2.0; > > however, the additional optimization should be included too, if that > > change makes the private table match the table used by other interfaces. > > > > Cheers, > > > > Zach [snip] _______________________________________________ Openocd-development mailing list Openocd-development@lists.berlios.de https://lists.berlios.de/mailman/listinfo/openocd-development