Permalink
Please sign in to comment.
Browse files
MIPS: ingenic: enable BTB lookups for short loops
The XBurst core by default attempts to avoid branch target buffer lookups by detecting & special casing loops. However when short loops (<= 4 instructions) are encountered this logic ends up introducing extra interlock cycle penalties & slowing performance. Setting bit 4 of the Config7 register disables this logic, restoring the performance of short loops at the cost of increased BTB contention when running longer loops. TODO: benchmark this with something more meaningful than bogomips TODO: which other SoCs does this apply to? Signed-off-by: Paul Burton <paul.burton@imgtec.com>
- Loading branch information...
Showing
with
10 additions
and 0 deletions.
0 comments on commit
0d72377