Skip to content

Commit

Permalink
MIPS16e2: Provide feature overrides for non-MIPS16 systems
Browse files Browse the repository at this point in the history
Hardcode the absence of the MIPS16e2 ASE for all the systems that do so
for the MIPS16 ASE already, providing for code to be optimized away.

Signed-off-by: Maciej W. Rozycki <macro@imgtec.com>
Reviewed-by: James Hogan <james.hogan@imgtec.com>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/16097/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Maciej W. Rozycki authored and Ralf Baechle committed Jul 11, 2017
1 parent 92ecd19 commit 65ae8d2
Show file tree
Hide file tree
Showing 16 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-ath25/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
#endif

#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_mdmx 0
#define cpu_has_mips3d 0
#define cpu_has_smartmips 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-au1x00/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
#define cpu_has_ejtag 1
#define cpu_has_llsc 1
#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_mdmx 0
#define cpu_has_mips3d 0
#define cpu_has_smartmips 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-bcm63xx/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#define cpu_has_ejtag 1
#define cpu_has_llsc 1
#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_mdmx 0
#define cpu_has_mips3d 0
#define cpu_has_smartmips 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-cobalt/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
#endif

#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_mdmx 0
#define cpu_has_mips3d 0
#define cpu_has_smartmips 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-dec/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#define cpu_has_mcheck 0
#define cpu_has_ejtag 0
#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_mdmx 0
#define cpu_has_mips3d 0
#define cpu_has_smartmips 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-ip22/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#define cpu_has_32fpr 1
#define cpu_has_counter 1
#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_divec 0
#define cpu_has_cache_cdex_p 1
#define cpu_has_prefetch 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-ip27/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
#define cpu_has_ejtag 0
#define cpu_has_llsc 1
#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_mdmx 0
#define cpu_has_mips3d 0
#define cpu_has_smartmips 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-ip28/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
*/
#define cpu_has_watch 1
#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_divec 0
#define cpu_has_vce 0
#define cpu_has_cache_cdex_p 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-ip32/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
#define cpu_has_32fpr 1
#define cpu_has_counter 1
#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_vce 0
#define cpu_has_cache_cdex_s 0
#define cpu_has_mcheck 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-jz4740/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#define cpu_has_ejtag 1
#define cpu_has_llsc 1
#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_mdmx 0
#define cpu_has_mips3d 0
#define cpu_has_smartmips 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
#define cpu_has_mcheck 0
#define cpu_has_mdmx 0
#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_mips3d 0
#define cpu_has_mipsmt 0
#define cpu_has_smartmips 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
#define cpu_has_4k_cache 1
#define cpu_has_watch 1
#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_counter 1
#define cpu_has_divec 1
#define cpu_has_vce 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-rc32434/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
#define cpu_has_llsc 1

#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_mdmx 0
#define cpu_has_mips3d 0
#define cpu_has_smartmips 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-rm/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
#define cpu_has_counter 1
#define cpu_has_watch 0
#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_divec 0
#define cpu_has_cache_cdex_p 1
#define cpu_has_prefetch 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-sibyte/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
*/
#define cpu_has_watch 1
#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_divec 1
#define cpu_has_vce 0
#define cpu_has_cache_cdex_p 0
Expand Down
1 change: 1 addition & 0 deletions arch/mips/include/asm/mach-tx49xx/cpu-feature-overrides.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#define cpu_has_inclusive_pcaches 0

#define cpu_has_mips16 0
#define cpu_has_mips16e2 0
#define cpu_has_mdmx 0
#define cpu_has_mips3d 0
#define cpu_has_smartmips 0
Expand Down

0 comments on commit 65ae8d2

Please sign in to comment.