From a3628d0779df62343e092d424214ddcbba19b31f Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sun, 21 Aug 2011 19:20:16 -0400 Subject: [PATCH] mips.py: add mips4_r10k classes --- arch/mips.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/arch/mips.py b/arch/mips.py index 1aa5fb61..9e26c9c1 100644 --- a/arch/mips.py +++ b/arch/mips.py @@ -96,6 +96,30 @@ class arch_mips4_multilib(generic_mips64): generic_mips64.__init__(self,myspec) self.settings["CFLAGS"]="-O2 -mips4 -pipe" +class arch_mips4_r10k(generic_mips): + "Builder class for MIPS IV R10k [Big-endian]" + def __init__(self,myspec): + generic_mips.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -march=r10k -mabi=32 -pipe" + +class arch_mips4_r10k_n32(generic_mips64): + "Builder class for MIPS IV R10k [Big-endian N32]" + def __init__(self,myspec): + generic_mips64.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -march=r10k -mabi=n32 -pipe" + +class arch_mips4_r10k_n64(generic_mips64): + "Builder class for MIPS IV R10k [Big-endian N64]" + def __init__(self,myspec): + generic_mips64.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -march=r10k -mabi=64 -pipe" + +class arch_mips4_r10k_multilib(generic_mips64): + "Builder class for MIPS IV R10k [Big-endian multilib]" + def __init__(self,myspec): + generic_mips64.__init__(self,myspec) + self.settings["CFLAGS"]="-O2 -march=r10k -pipe" + class arch_mips64(generic_mips): "Builder class for MIPS 64 [Big-endian]" def __init__(self,myspec): @@ -313,6 +337,10 @@ def register(): "mips4_n32" : arch_mips4_n32, "mips4_n64" : arch_mips4_n64, "mips4_multilib": arch_mips4_multilib, + "mips4_r10k" : arch_mips4_r10k, + "mips4_r10k_n32": arch_mips4_r10k_n32, + "mips4_r10k_n64": arch_mips4_r10k_n64, + "mips4_r10k_multilib" : arch_mips4_r10k_multilib, "mips64" : arch_mips64, "mips64_n32" : arch_mips64_n32, "mips64_n64" : arch_mips64_n64, -- 2.26.2