summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Schleifer <js@heap.zone>2018-06-28 01:32:07 +0200
committerJonathan Schleifer <js@heap.zone>2018-06-28 01:32:07 +0200
commit5f5e05395bd28a76de1c3c0dc7393685a765bf51 (patch)
tree50d3fa038dce1bed95816b1638ede3942cad35dd
parent3b303865609c09f84185fd3113289851f0e206d8 (diff)
platform.h: Add RISC-V
-rw-r--r--src/platform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/platform.h b/src/platform.h
index 7c53297c..2699a71e 100644
--- a/src/platform.h
+++ b/src/platform.h
@@ -90,6 +90,11 @@
# if defined(__mc68010__) || defined(OF_M68020)
# define OF_M68010
# endif
+# if defined(__riscv) && defined(__riscv_xlen) && __riscv_xlen == 64
+# define OF_RISCV64
+# elif defined(__riscv)
+# define OF_RISCV
+# endif
#endif
#if defined(__APPLE__)