aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--catalyst/arch/riscv.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/catalyst/arch/riscv.py b/catalyst/arch/riscv.py
new file mode 100644
index 0000000..6f5695f
--- /dev/null
+++ b/catalyst/arch/riscv.py
@@ -0,0 +1,13 @@
+
+from catalyst import builder
+
+class arch_riscv(builder.generic):
+ "builder class for riscv"
+ def __init__(self,myspec):
+ builder.generic.__init__(self,myspec)
+ self.settings["COMMON_FLAGS"]="-O2 -pipe"
+ self.settings["CHOST"]="riscv64-unknown-linux-gnu"
+
+def register():
+ "Inform main catalyst program of the contents of this plugin."
+ return ({ "riscv":arch_riscv }, ("rv64","riscv64","riscv"))