eclass/flag-o-matic.eclass: Add missing MIPS CPU errata flags
authorJoshua Kinard <kumba@gentoo.org>
Sat, 28 Mar 2020 19:52:59 +0000 (15:52 -0400)
committerJoshua Kinard <kumba@gentoo.org>
Sat, 28 Mar 2020 19:58:58 +0000 (15:58 -0400)
commitd781ee4fa12765e0aa4fee1f451f1b01591f97a7
tree14c560ec87f9ba35fd3c0021bd1e59945b85ba89
parent1a687fd280c3d33cbf7ef99cd6f96fda95039c75
eclass/flag-o-matic.eclass: Add missing MIPS CPU errata flags

Noticed during a glibc build for MIPS-III ISA that the -mfix-r4000
and -mfix-r4400 gcc flags got stripped off.  These are needed to work
around known CPU errata in R4000 and R4400 CPUs.  In addition, also
add the -mfix-rm7000 option (and it's -mno form) to fix errata in the
PMC RM7000 CPU, and the -mr10k-cache-barrier to control the generation
of cache barriers to work around the side-effects of R10000's
speculative execution capabilities.

Signed-off-by: Joshua Kinard <kumba@gentoo.org>
Reviewed-by: Matt Turner <mattst88@gentoo.org>
eclass/flag-o-matic.eclass