mips: optimize mips_ejtag_step_disable() code
authorSalvador Arroyo <sarroyofdez@yahoo.es>
Tue, 30 Oct 2012 22:15:35 +0000 (23:15 +0100)
committerKeith Packard <keithp@keithp.com>
Sat, 13 Apr 2013 06:34:43 +0000 (23:34 -0700)
commitf3d98fcf685719bb7e4843da85faf7233b88c583
tree361f62844afd6077a090c65759ca04bb338b3171
parentc75923053e59970158a68c2665ecc5cc014a0313
mips: optimize mips_ejtag_step_disable() code

The code is a bit large compared to mips_ejtag_step_enable().
With the mips32 xori instruction the code can be
reused.
The number of pracc accesses are reduced from 18 to 7.

Change-Id: If3974ebd64da4461c22b089796646990e68e1b72
Signed-off-by: Salvador Arroyo <sarroyofdez@yahoo.es>
Reviewed-on: http://openocd.zylin.com/944
Tested-by: jenkins
Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
src/target/mips32.h
src/target/mips_ejtag.c