aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2012-09-27 18:29:51 -0700
committerMatt Turner <mattst88@gmail.com>2012-09-27 18:29:51 -0700
commit2bc50a57053994b2f6c27daa5fc422989bef0a65 (patch)
tree76f02bbd94acc2e1bdf8f929d48f78c2114de99a
parentDon't emerge ccache/distcc/icecream with --nodeps (diff)
downloadcatalyst-2bc50a57053994b2f6c27daa5fc422989bef0a65.tar.gz
catalyst-2bc50a57053994b2f6c27daa5fc422989bef0a65.tar.bz2
catalyst-2bc50a57053994b2f6c27daa5fc422989bef0a65.zip
mips.py: Add loongson3a classes
-rw-r--r--arch/mips.py28
1 files changed, 28 insertions, 0 deletions
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"))