From: Matt Turner Date: Fri, 28 Sep 2012 01:29:51 +0000 (-0700) Subject: mips.py: Add loongson3a classes X-Git-Tag: catalyst-2.0.12~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2bc50a57053994b2f6c27daa5fc422989bef0a65;p=catalyst.git mips.py: Add loongson3a classes --- diff --git a/arch/mips.py b/arch/mips.py index 6c206427..9ea2d0e9 100644 --- a/arch/mips.py +++ b/arch/mips.py @@ -358,6 +358,30 @@ class arch_mips64r2el_multilib(generic_mips64el): generic_mips64el.__init__(self,myspec) self.settings["CFLAGS"]="-O2 -march=mips64r2 -mplt -pipe" +class arch_loongson3a(generic_mipsel): + "Builder class for Loongson 3A [Little-endian]" + def __init__(self,myspec): + generic_mipsel.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -march=loongson3a -mabi=32 -mplt -pipe" + +class arch_loongson3a_n32(generic_mips64el): + "Builder class for Loongson 3A [Little-endian N32]" + def __init__(self,myspec): + generic_mips64el.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -march=loongson3a -mabi=n32 -mplt -pipe" + +class arch_loongson3a_n64(generic_mips64el): + "Builder class for Loongson 3A [Little-endian N64]" + def __init__(self,myspec): + generic_mips64el.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -march=loongson3a -mabi=64 -pipe" + +class arch_loongson3a_multilib(generic_mips64el): + "Builder class for Loongson 3A [Little-endian multilib]" + def __init__(self,myspec): + generic_mips64el.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -march=loongson3a -mplt -pipe" + class arch_cobalt(generic_mipsel): "Builder class for cobalt [Little-endian]" def __init__(self,myspec): @@ -433,4 +457,8 @@ def register(): "loongson2f_n32" : arch_loongson2f_n32, "loongson2f_n64" : arch_loongson2f_n64, "loongson2f_multilib" : arch_loongson2f_multilib, + "loongson3a" : arch_loongson3a, + "loongson3a_n32" : arch_loongson3a_n32, + "loongson3a_n64" : arch_loongson3a_n64, + "loongson3a_multilib" : arch_loongson3a_multilib, }, ("mips","mips64"))