aboutsummaryrefslogtreecommitdiffstats
path: root/cparser
diff options
context:
space:
mode:
Diffstat (limited to 'cparser')
-rw-r--r--cparser/Machine.ml5
-rw-r--r--cparser/Machine.mli2
2 files changed, 7 insertions, 0 deletions
diff --git a/cparser/Machine.ml b/cparser/Machine.ml
index 364ebf28..4df80125 100644
--- a/cparser/Machine.ml
+++ b/cparser/Machine.ml
@@ -180,6 +180,11 @@ let arm_bigendian =
{ arm_littleendian with bigendian = true;
bitfields_msb_first = true }
+let rv32 =
+ { ilp32ll64 with name = "rv32" }
+let rv64 =
+ { i32lpll64 with name = "rv64" }
+
(* Add GCC extensions re: sizeof and alignof *)
let gcc_extensions c =
diff --git a/cparser/Machine.mli b/cparser/Machine.mli
index 8ca1e989..b971958d 100644
--- a/cparser/Machine.mli
+++ b/cparser/Machine.mli
@@ -65,6 +65,8 @@ val ppc_32_bigendian : t
val ppc_32_diab_bigendian : t
val arm_littleendian : t
val arm_bigendian : t
+val rv32 : t
+val rv64 : t
val gcc_extensions : t -> t
val compcert_interpreter : t -> t