
26 Nov
2012
26 Nov
'12
12:14 a.m.
sön 2012-11-25 klockan 18:41 +0100 skrev Wolfgang Denk:
Dear Henrik Nordström,
In message 1353842010.17518.3.camel@home.hno.se you wrote:
ARM v7 runs with icache enabled. For reliable results the go command needs to flush the icache before jumping or it may risk running cached instructions that differ from what currently is in memory.
This should never be an architecutre specific thing. Whether we flush caches or not should be the same on all architectures.
Agreed.
But this needs some "flush icache if supported & enabled for current arch" function that do not yell loudly if icache not supported/enabled. invalidate_icache_all() yells loudly if not implememented by the current arch.
Regards Henrik