commit | 9e0d25ed06fb62d398189987cbea18dd8b17b081 | [log] [tgz] |
---|---|---|
author | Leo Yan <leoy@marvell.com> | Mon Mar 31 09:50:35 2014 +0800 |
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | Mon Apr 07 22:27:22 2014 +0200 |
tree | 7aba3ec6c539ce781b3f4e0ccdf6ef9d02ebfd5d | |
parent | b7ebd102a246ef633fb6711ab74bb7f32fa64a9a [diff] |
ARMv8: fix bug for flush data cache by set/way When flush the d$ with set/way instruction, it need calculate the way's offset = log2(Associativity); but in current uboot's code, it use below formula to calculate the offset: log2(Associativity * 2 - 1), so finally it cannot flush data cache properly. Signed-off-by: Leo Yan <leoy@marvell.com>