Skip to content

Commit d781ee4

Browse files
committed
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 <[email protected]> Reviewed-by: Matt Turner <[email protected]>
1 parent 1a687fd commit d781ee4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

eclass/flag-o-matic.eclass

+3-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,9 @@ setup-allowed-flags() {
5656
-mno-faster-structs -mfaster-structs -m32 -m64 -mx32 -mabi
5757
-mlittle-endian -mbig-endian -EL -EB -fPIC -mlive-g0 -mcmodel
5858
-mstack-bias -mno-stack-bias -msecure-plt '-m*-toc' -mfloat-abi
59-
-mfix-r10000 -mno-fix-r10000 -mthumb -marm
59+
-mfix-r4000 -mno-fix-r4000 -mfix-r4400 -mno-fix-r4400
60+
-mfix-rm7000 -mno-fix-rm7000 -mfix-r10000 -mno-fix-r10000
61+
-mr10k-cache-barrier -mthumb -marm
6062

6163
# gcc 4.5
6264
-mno-fma4 -mno-movbe -mno-xop -mno-lwp

0 commit comments

Comments
 (0)