Skip to content

Commit

Permalink
Add sh2a support.
Browse files Browse the repository at this point in the history
  • Loading branch information
pmundt committed May 2, 2005
1 parent 51d16a5 commit e8a91ad
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Rules.mak
Expand Up @@ -167,7 +167,13 @@ ifeq ($(strip $(TARGET_ARCH)),sh)
CPU_CFLAGS-$(ARCH_BIG_ENDIAN)+=-mb
CPU_CFLAGS-$(CONFIG_SH2)+=-m2
CPU_CFLAGS-$(CONFIG_SH3)+=-m3
ifeq ($(strip $(UCLIBC_HAS_FLOATS)),y)
CPU_CFLAGS-$(CONFIG_SH2A)+=-m2a
CPU_CFLAGS-$(CONFIG_SH4)+=-m4
else
CPU_CFLAGS-$(CONFIG_SH2A)+=-m2a-nofpu
CPU_CFLAGS-$(CONFIG_SH4)+=-m4-nofpu
endif
endif

ifeq ($(strip $(TARGET_ARCH)),sh64)
Expand Down
8 changes: 7 additions & 1 deletion extra/Configs/Config.sh
Expand Up @@ -4,7 +4,7 @@
#

config TARGET_ARCH
default "sh" if CONFIG_SH2 || CONFIG_SH3 || CONFIG_SH4
default "sh" if CONFIG_SH2A || CONFIG_SH2 || CONFIG_SH3 || CONFIG_SH4
default "sh64" if CONFIG_SH5

config HAVE_ELF
Expand Down Expand Up @@ -47,6 +47,12 @@ choice
- "SH4" SuperH SH-4
- "SH5" SuperH SH-5 101, 103

config CONFIG_SH2A
select ARCH_HAS_NO_MMU
select ARCH_HAS_NO_LDSO
select HAVE_NO_PIC
bool "SH2A"

config CONFIG_SH2
select ARCH_HAS_NO_MMU
select ARCH_HAS_NO_LDSO
Expand Down

0 comments on commit e8a91ad

Please sign in to comment.