This repository has been archived on 2026-03-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
ubports_kernel_google_msm/arch/microblaze/kernel
Michal Simek 9c749e177c microblaze: Fix unaligned issue on MMU system with BS=0 DIV=1
Unaligned code use shift for finding register operand.
There is used BSRLI(r8,r8,2) macro which is expand for BS=0, DIV=1
by
	ori rD, r0, (1 << imm);	\
	idivu rD, rD, rA

but if rD is equal rA then ori instruction rewrite value which
should be devide.

The patch remove this macro which use idivu instruction because
idivu takes 32/34 cycles. The highest shifting is 20 which takes
20 cycles.

Signed-off-by: Michal Simek <monstr@monstr.eu>
2011-01-28 14:05:00 +01:00
..
2010-06-09 16:20:54 +02:00
2010-08-04 10:22:35 +02:00
2010-10-21 15:51:58 +10:00
2010-08-02 10:44:03 +02:00
2009-03-27 14:25:15 +01:00
2010-08-04 10:22:35 +02:00
2010-10-21 15:52:00 +10:00
2010-08-04 10:22:35 +02:00
2010-08-04 10:22:35 +02:00
2010-11-18 13:02:54 +01:00