diff options
author | Andrew Waterman <andrew@sifive.com> | 2019-11-12 16:57:10 -0800 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2019-11-12 18:17:23 -0800 |
commit | 8ffefbc9a1f7730d14a2f694906bcc681cbca2e5 (patch) | |
tree | 4ddbd6759b51f7bf2427db7d45bbdf9f9daa541e /configure | |
parent | 24e587d43315dabaac2b7b8a631d459fc12f3f14 (diff) | |
download | riscv-isa-sim-8ffefbc9a1f7730d14a2f694906bcc681cbca2e5.zip riscv-isa-sim-8ffefbc9a1f7730d14a2f694906bcc681cbca2e5.tar.gz riscv-isa-sim-8ffefbc9a1f7730d14a2f694906bcc681cbca2e5.tar.bz2 |
Add --priv option to control which privilege modes are available
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -702,6 +702,7 @@ enable_option_checking enable_stow enable_optional_subprojects with_isa +with_priv with_varch enable_commitlog enable_histogram @@ -1360,6 +1361,7 @@ Optional Packages: --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) --with-isa=RV64IMAFDC Sets the default RISC-V ISA + --with-priv=MSU Sets the default RISC-V privilege modes supported --with-varch=v128:e32:s128 Sets the default vector config @@ -4620,6 +4622,23 @@ fi +# Check whether --with-priv was given. +if test "${with_priv+set}" = set; then : + withval=$with_priv; +cat >>confdefs.h <<_ACEOF +#define DEFAULT_PRIV "$withval" +_ACEOF + +else + +cat >>confdefs.h <<_ACEOF +#define DEFAULT_PRIV "MSU" +_ACEOF + +fi + + + # Check whether --with-varch was given. if test "${with_varch+set}" = set; then : withval=$with_varch; |