]> git.baikalelectronics.ru Git - kernel.git/commit
Blackfin arch: Fix bug - KGDB single step into the middle of a 4 bytes instruction...
authorSonic Zhang <sonic.zhang@analog.com>
Thu, 5 Mar 2009 10:26:59 +0000 (18:26 +0800)
committerBryan Wu <cooloney@kernel.org>
Thu, 5 Mar 2009 10:26:59 +0000 (18:26 +0800)
commit165f77321ff58dd4d84b7b99f425b9a3a8786968
tree5edcc57036c26f41fad67884267f0e2aa2f3d021
parentb7c51cb59b682328615b89679308cdbc546832b8
Blackfin arch: Fix bug - KGDB single step into the middle of a 4 bytes instruction on bf561 after soft bp is hit

Run IFLUSH twice to avoid loading wrong instruction
after invalidating icache and following sequence is met.

1) The one instruction address is cached in the icache.
2) This instruction in SDRAM is changed.
3) IFLASH[P0] is executed only once in lackfin_icache_flush_range().
4) This instruction is executed again, but not the changed new one.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Bryan Wu <cooloney@kernel.org>
arch/blackfin/mach-common/cache.S