aboutsummaryrefslogtreecommitdiffstats
path: root/driver
diff options
context:
space:
mode:
Diffstat (limited to 'driver')
-rw-r--r--driver/Configuration.ml2
-rw-r--r--driver/Driver.ml3
2 files changed, 4 insertions, 1 deletions
diff --git a/driver/Configuration.ml b/driver/Configuration.ml
index 87e72f1c..58583330 100644
--- a/driver/Configuration.ml
+++ b/driver/Configuration.ml
@@ -123,7 +123,7 @@ let get_bool_config key =
let arch =
match get_config_string "arch" with
- | "powerpc"|"arm"|"x86" as a -> a
+ | "powerpc"|"arm"|"x86"|"riscV" as a -> a
| v -> bad_config "arch" [v]
let model = get_config_string "model"
let abi = get_config_string "abi"
diff --git a/driver/Driver.ml b/driver/Driver.ml
index a91bb67c..310e4209 100644
--- a/driver/Driver.ml
+++ b/driver/Driver.ml
@@ -461,6 +461,9 @@ let _ =
if Configuration.abi = "macosx"
then Machine.x86_32_macosx
else Machine.x86_32
+ | "riscV" -> if Configuration.model = "64"
+ then Machine.rv64
+ else Machine.rv32
| _ -> assert false
end;
Builtins.set C2C.builtins;