sh: Simplify and lock down the ISA tuning.
The ISA tuning as it is today can not cope with all of the different variations that are possible, so all we can do is a best attempt based on the CPU family. The DSP and FPU generation are already at odds with each other, and the nommu tuning we weren't handling at all. Additionally, for platforms that never had an FPU, the -nofpu variant never existed, meaning that we would lose out on family granular tuning completely in certain cases. With tat out of the way, we were also using -up versions, allowing for later instructions that branched off of a particular subset of the ISA, but are not actually reflected on the hardware being targetted. This leads to some confusion, and the possibility of bogus instructions on older parts. Kill that off and lock it down to the family being built for specifically. Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
parent
1a30603233
commit
b2d86a3fd9
|
@ -2,7 +2,7 @@
|
|||
# arch/sh/Makefile
|
||||
#
|
||||
# Copyright (C) 1999 Kaz Kojima
|
||||
# Copyright (C) 2002, 2003, 2004 Paul Mundt
|
||||
# Copyright (C) 2002 - 2008 Paul Mundt
|
||||
# Copyright (C) 2002 M. R. Brown
|
||||
#
|
||||
# This file is subject to the terms and conditions of the GNU General Public
|
||||
|
@ -20,14 +20,6 @@ isa-$(CONFIG_CPU_SH4AL_DSP) := sh4al
|
|||
isa-$(CONFIG_CPU_SH5) := shmedia
|
||||
isa-$(CONFIG_SH_DSP) := $(isa-y)-dsp
|
||||
|
||||
ifndef CONFIG_SH_DSP
|
||||
ifndef CONFIG_SH_FPU
|
||||
isa-y := $(isa-y)-nofpu
|
||||
endif
|
||||
endif
|
||||
|
||||
isa-y := $(isa-y)-up
|
||||
|
||||
cflags-$(CONFIG_CPU_SH2) := $(call cc-option,-m2,)
|
||||
cflags-$(CONFIG_CPU_SH2A) += $(call cc-option,-m2a,) \
|
||||
$(call cc-option,-m2a-nofpu,)
|
||||
|
|
Loading…
Reference in New Issue