aboutsummaryrefslogtreecommitdiff
path: root/scripts/wrapper
AgeCommit message (Collapse)AuthorFilesLines
2023-12-08Add misaligned memory access for spike.Yanzhang Wang1-1/+2
The spec does not forbid the misaligned memory access. And the gcc will generate vector load/store to access misaligned memory by default. Currently the QEMU supports this feature, so to support in spike is also make sense. Reference test case: gcc/gcc/testsuite/gcc.dg/vect/vect-align-1.c
2023-11-22Fix CI run failure on rv64gcPan Li1-2/+6
Signed-off-by: Pan Li <pan2.li@intel.com>
2023-11-21Inject CPU options to spike run test from elf filePan Li2-8/+11
* Refactor CPU options for exacting common part between qemu and spike. * Inject CPU options to spike run command line. The below common CPU options are extracted to common part. * xlen * vlen * extensions The above CPU options will be leveraged to build the run arguments for both the qemu and spike, for example. QEMU: qemu-riscv64 -cpu rv64,v=true,vlen=1024,elen=64,vext_spec=v1.0 SPIKE: spike --isa=rv64imafdcv_zicsr_zifencei_zmmul --varch=vlen:1024,elen:64 Signed-off-by: Pan Li <pan2.li@intel.com>
2023-04-24Add --get-elf-class for march-to-cpu-optKito Cheng1-1/+1
2023-04-24Set qemu cpu option from ELF attributeKito Cheng1-1/+1
This could help multi-lib testing, but the price is slightly increase the testing time since it will need to extract ELF attribute from binary before running qemu. But I think the cost is acceptable compare to make build system more complicate, and actually we already use this approach in our internal stuffs for years.
2022-06-03Pass right extension info to qemuKito Cheng1-1/+1
- Parse that from `--with-arch=` option
2022-05-23Add option '--with-sim' to set simulatorLiaoshihua1-2/+2
2021-04-01Specify the kernel version for qemu user mode.Kito Cheng1-1/+1
- RV32 require 5.10 which is too new for most linux distro.
2020-11-04Support run testsuite with spikeKito Cheng4-0/+10
2019-10-03Add macos to travis-ciKito Cheng1-0/+6
2017-09-22Fail mail_tail when make failsPalmer Dabbelt1-0/+3
2017-09-13Allow tests to pass special QEMU argumentsPalmer Dabbelt1-1/+13
2017-08-20Run the GCC test suite on TravisPalmer Dabbelt1-0/+3
I don't run any multilib tests here because they take too long for Travis.
2017-08-20Link all the QEMU wrapper scripts togetherPalmer Dabbelt4-4/+6
2017-02-09Use qemu for check-gcc-newlibAndrew Waterman2-0/+2
gdb-sim accounted for nearly all test failures, so don't use it for now.
2016-09-29Add support for run testsuite with qemuKito Cheng2-0/+2
2015-04-11Avoid wrapping GNU sed/awk on systems where that's the defaultPalmer Dabbelt3-2/+3
I have no idea why, but the installed "sed" wrapper never terminates on RHEL. If I don't use the wrappen the the tools build fine, so this just uses the already set autoconf variables to attempt to determine if the system sed/awk are gsed/gawk and if they are then this avoids using the wrappers. There's a few oddities here: * I have no idea why the sed wrapper fails, as it seems super safe. * I haven't run into any awk problems, but I figured I'd treat it the same as it isn't any harder. * We shouldn't have to support 10 year old distributions. Hopefully this doesn't break anyone's builds...
2015-02-20Centralize GNU utility checks in autoconfAlbert Ou3-0/+16
Tests for program presence, such as those formerly embedded in the top-level Makefile for gawk and gsed, are better suited for autoconf. Note that it is not sufficient to merely export AWK and SED environment variables, as packages may still directly invoke awk(1) and sed(1) with non-standard features independent of the autotools framework. Wrapper scripts therefore remain necessary, although these are now generated by the configure script to avoid hard-coded paths. Do not assume the existence of /bin/bash on all systems.