]> git.sur5r.net Git - openocd/commit
mips: optimize write code for speed
authorSalvador Arroyo <sarroyofdez@yahoo.es>
Fri, 2 Nov 2012 15:08:31 +0000 (16:08 +0100)
committerSpencer Oliver <spen@spen-soft.co.uk>
Fri, 16 Nov 2012 12:41:47 +0000 (12:41 +0000)
commitf3e01106d9a8e7ad6b81413f37c1f6d5c806600d
treeb7c6c164addc8033e91b5aab1e717fff85ba5a07
parent83f3f2c4c70d60035eb7ec6e8a5f78f92ecb01e3
mips: optimize write code for speed

All the writes are done by the new function mips32_pracc_write_mem_generic().
The code is similar to the read generic code.
The reuse of register 15 as memory base address saves 3 pracc accesses.
The first write takes 13(12) pracc accesses and for additional writes 3(2).
Loading miniprograms should take 25% less time and loading fastdata transfer
handler code should be over 2x faster.

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