aboutsummaryrefslogtreecommitdiff
path: root/configure
AgeCommit message (Collapse)AuthorFilesLines
2020-05-19fdt: import fdt library from OpenSBIChih-Min Chao1-0/+49
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2020-04-05Fix hard-coded path to DTC that breaks packaging (#428)Joel Sherrill1-14/+2
configure.ac included code which detects and inserted a full path to dtc. Unfortunately, when building with a packaging system, this path reflects the path under a staged building area. Also the inclusion of a full path breaks the use case where someone keeps two versions of dtc on their computer and sets their PATH to switch between them. spike will continue to use the one on their PATH when it was built rather than the intended one. Co-authored-by: Joel Sherrill <joel@rtems.org>
2020-03-03Allow overriding CFLAGS and similar when buildingRupert Swarbrick1-12/+154
Before this patch, I don't think it was possible to change (say) CFLAGS as part of running the make command. Nor did setting them when running configure do anything. Getting this right is a little fiddly: for example, see Automake's approach at [1] ("AM_CFLAGS" and friends). This patch adds an "mcppbs-" prefix, and sets things up properly for CFLAGS, CPPFLAGS, CXXFLAGS and LDFLAGS. Note that the bulk of the patch is either the auto-generated configure script or the ax_*.m4 files vendored in from the autoconf archive (needed to handle --export-dynamic correctly without trashing settings from the user running configure). What's supposed to happen is as follows: - Base compilation flags that should apply to everything (standard optimisation flags, warning flags etc.) are defined in Makefile.in. - When the user runs configure, they can set compilation flags on the command line. These end up as environment variables in the shell script. - Compilation flags that can only be decided when we run configure (this is currently just whether we support -Wl,--export-dynamic) are appended to the configure-time LDFLAGS environment variable. - At the end of the configure script, these environment variables are spliced into Makefile.in to fill out the corresponding @<varname>@ entries. - When running make, the user might again override compilation flags. These will get appended to the flags found so far. As a concrete example: mkdir build cd build ../configure CXXFLAGS='-O3' make CXXFLAGS='-O0' will result in c++ compile commands that look like this: g++ -MMD -MP \ -DPREFIX=\"/usr/local\" -Wall -Wno-unused -g -O2 -std=c++11 \ -O3 \ -O0 \ -I. -I.. -I../fesvr -I../riscv -I../dummy_rocc -I../softfloat \ -I../spike_main -fPIC -c ../fesvr/elfloader.cc (I've added some newlines to wrap the long line). Note that we have the base flags from Makefile.in (called $(default-CXXFLAGS) there) first. Then we have the -O3 from the configure command. Finally we have the -O0 from the Make command line. And I can finally run "make CXXFLAGS='-O0 -g3'". Phew! [1] https://www.gnu.org/software/automake/manual/html_node/Flag-Variables-Ordering.html
2020-03-04rvv: remove the option of vector impl. checkZhen Wei1-15/+0
The check is not needed anymore since most vector kernels are supported in current implemented vector instruction set.
2020-02-27rvv: enable --varch to parse string type optionsZhen Wei1-2/+2
To improve the readability of varch argument, the format of options within varch are changed from "v128:e64:s512" to "vlen:128,elen:64,slen:512".
2020-02-19Improve --varch error checking. (#394)Tim Newsome1-2/+2
* Improve --varch error checking. Print out why an option has problems. Add check that elen must be >= xlen, flen, per the spec. Since RV32G includes D by default, bump default elen to 64. * Remove debug printf.
2019-11-17Add --priv option to control which privilege modes are availableAndrew Waterman1-0/+19
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-11-11rvv: remove tail-zeroChih-Min Chao1-2/+2
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-10-29Implement support for big-endian hostsMarcus Comstedt1-1/+2
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-09-25rvv:add t0/t1 to configure to setup default tailzero modeChih-Min Chao1-2/+2
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-09-04rvv: reimplement check-1905 as check-implChih-Min Chao1-7/+7
build with --enable-check-imple run with --check-impl=1905 (or 1905 or future release) Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-09-04Fix OSX buildAndrew Waterman1-1/+75
Closes #326
2019-09-04Implement MMIO device plugins.Aaron Jones1-0/+2
2019-08-02rvv: use formal way to generate --enable-1905-checkChih-Min Chao1-5/+3
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-07-22Fix support for 32-bit hosts (but no V extension in that case!)Andrew Waterman1-2/+2
2019-06-14rvv: add __int128_t check to autoconfChih-Min Chao1-0/+66
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-06-14rvv: regeneate configure.ac to fix --with-vector by --with-varchChih-Min Chao1-19/+18
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-06-06Revert "rvv: make misaligned access default"Chih-Min Chao1-2/+2
we can change master now and remove the legacy default change This reverts commit 55511de63160e99c82dba9a5edaa364876bcb5e0.
2019-05-20Revert "rvv: fix 1905 default configure value"Chih-Min Chao1-1/+1
make is alwasy on This reverts commit 5bb50ab2551c99d844d4dec541645e3f1a7527f5.
2019-05-20rvv: fix 1905 default configure valueChih-Min Chao1-1/+1
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-05-19rvv: add --enable-1905-checkChih-Min Chao1-0/+17
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2019-05-14Add fesvr; only globally install fesvr headers/libsAndrew Waterman1-159/+96
2019-05-02rvv: add default varch string when user not specified itDave.Wen1-1/+1
2019-04-30rvv: configurable vector architecture during configuration andDave.Wen1-0/+22
execution time configuration: --with-vector ${VARCH_STR} execution: --varch ${VARCH_STR} VARCH_STR representation: v${VLEN in bits}:e${ELEN in bits}:s${SLEN in bits} e.g.: v128:e32:s128
2019-04-08rvv: make misaligned access defaultChih-Min Chao1-2/+2
Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
2017-06-05Configure should fail if device-tree-compiler is not installedAndrew Waterman1-0/+4
Fixes #107
2017-04-05Add --enable-misaligned option for misaligned ld/st supportAndrew Waterman1-0/+16
Resolves #93
2017-03-21autoconf: put location of 'dtc' into config.hWesley W. Terpstra1-0/+46
2017-02-18Make HW setting of PTE A/D bits optional (by configure arg)Andrew Waterman1-1/+29
https://github.com/riscv/riscv-isa-manual/issues/14
2016-04-02Allow configuration of default ISA with --with-isaAndrew Waterman1-0/+19
2016-03-02Add autoconf check for little-endiannessAndrew Waterman1-265/+686
2016-03-02Compile debug symbolsAndrew Waterman1-2/+2
2016-01-24Remove hwacha supportAndrew Waterman1-49/+0
Support for hwacha will continue on the ESP branch (see https://github.com/ucb-bar/esp-isa-sim).
2015-05-13autoreconf 126beb482ff6 ("Install pkg-config files for Spike")Palmer Dabbelt1-0/+18
2015-04-09Fix autoconf for RHEL6Andrew Waterman1-57/+58
2015-04-03Support setting ISA/subsets with --isa flagAndrew Waterman1-105/+61
Default is RV64IMAFDC. Can do things like --isa=RV32 (which implies IMAFDC) --isa=IM (which implies RV64) --isa=RV64IMAFDXhwacha
2015-03-30Implement RVC draftAndrew Waterman1-0/+15
2015-01-09Don't look for a simulator when cross compilingAndrew Waterman1-120/+0
2015-01-09Fix bug where C compiler used instead of C++ for autoconf testsStephen Twigg1-8/+16
2014-12-29autoreconf 65ba70071d11cc19b3dc85c047c5fea6d4d7bc0dPalmer Dabbelt1-121/+139
2014-12-20Support building from within root directoryAndrew Waterman1-8/+8
2014-11-25Factor out the dummy RoCC acceleratorAndrew Waterman1-0/+46
2014-11-19Suppress harmless warningsAndrew Waterman1-2/+2
specifically, unused variables in auto-generated code.
2014-08-28Update configure to set CPPFLAGS instead of CFLAGS with fesvr include path.Jim Lawson1-1/+1
Since we no longer are duplicating CFLAGS, ensure CPPFLAGS are set correctly.
2014-08-15Added PC histogram option.Christopher Celio1-0/+15
- Spits out all PCs (on 4B granularity) executed with count. - Requires a compile time configuration option. - Also requires a run-time flag.
2014-01-26Enable runtime loading of dynamic library with --extlibAndrew Waterman1-155/+149
2014-01-26Eliminate hwacha <-> riscv circular dependenceAndrew Waterman1-102/+153
We now split out the spike executable into another subproject, which depends on both rocket and hwacha
2014-01-25Merge softfloat_riscv into softfloatAndrew Waterman1-46/+0
They really aren't independent libraries.
2014-01-24Require libdl for dynamic linking at runtimeAndrew Waterman1-15/+63
2014-01-24Build and use shared libraries onlyAndrew Waterman1-2/+2