MIPS: avoid .set ISA for cache operations
authorPaul Burton <paul.burton@imgtec.com>
Thu, 29 Jan 2015 01:27:56 +0000 (01:27 +0000)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Thu, 29 Jan 2015 11:55:00 +0000 (12:55 +0100)
commit2b8bcc5a2fca54648ece966902b8230de971b609
tree1df9aa1e5fbe3910671ba196898440ecfe83d0d3
parentab92da9f47d51d363c7de42e2a7bd807e2c1bd54
MIPS: avoid .set ISA for cache operations

As a step towards unifying the cache maintenance code for mips32 &
mips64 CPUs, stop using ".set <ISA>" directives in the more developed
mips32 version of the code. Instead, when present make use of the GCC
builtin for emitting a cache instruction. When not present, simply don't
bother with the .set directives since U-boot always builds with
-march=mips32 or higher anyway.

Signed-off-by: Paul Burton <paul.burton@imgtec.com>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/mips/cpu/mips32/cache.S
arch/mips/cpu/mips32/cpu.c
arch/mips/include/asm/cacheops.h