Let's start from the most common points of view and make some most safe 
modifications first.

I think the first thing can be done safely is to remove jtag_add_reset, in adi 
and cortex codes.
There is no check for the current transport, and take JTAG as default.
And if jtag_add_reset is called, there is chances that TLR reset will be used, 
which is not available in SWD mode.

We can add queue_reset function in dap_ops, and implement reset method in 
adi_jtag and adi_swd.
Or we can simply add a function to handle reset in arm_adi_v5.c code.
Or we can disable TLR reset if JTAG is not sellected. But I don't prefer this.




simonqian.openocd
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
OpenOCD-devel mailing list
OpenOCD-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to