aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorPalmer Dabbelt <palmer@dabbelt.com>2016-07-12 11:17:10 -0700
committerAndrew Waterman <waterman@eecs.berkeley.edu>2016-07-12 11:17:10 -0700
commit7f3b666f55c9f01c2f2fd725c1686e1a509df173 (patch)
tree2e256eed2b68c15a0e0dfa6984acf96bd2252fca /configure.ac
parentb6c8a03dcd7ed3c109d2c9da797b295f160f051d (diff)
downloadriscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.zip
riscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.tar.gz
riscv-tests-7f3b666f55c9f01c2f2fd725c1686e1a509df173.tar.bz2
Add a "--with-xlen" configure argument (#16)
The tools had riscv64-unknown-elf-gcc hard-coded all over the place. This lets users override that if they have a 32-bit toolchain.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac8
1 files changed, 8 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index d85ddd6..ebfd649 100644
--- a/configure.ac
+++ b/configure.ac
@@ -3,6 +3,14 @@ AC_INIT(riscv-tests, 1.0)
cross_compiling=yes
AC_PROG_CC
+AC_ARG_WITH(xlen,
+ [AS_HELP_STRING([--with-xlen=XLEN],
+ [Set XLEN, the X-register bit width (default is 64)])],
+ AC_SUBST(XLEN, $withval),
+ AC_SUBST(XLEN, 64)
+ )
+
+
AC_OUTPUT(
Makefile
)