~theonlymrcat/riscv-test-env

Get riscv-tests working again
4fabfb4e — Andrew Waterman 1 year, 10 months ago
Cope with presence of Smrnmi extension

Enable RNMIs if the extension is present, as the feature affects trap
behavior when RNMIs are masked.
91754f96 — Andrew Waterman 1 year, 10 months ago
Update encoding.h for Smrnmi definitions
982f93f5 — deepak0414 2 years ago
env: trap and page fault filter mechanism (#40)

Certain tests (particularly negative) may require a fault to occur.

However in order to pass the tests, page fault and traps must return back
to the tests. This patch add support for page fault and trap filtering
in env.

Signed-off-by: Deepak Gupta <debug@rivosinc.com>
34a11752 — eistar 3 years ago
Reverse memcpy direction when evicts a page. (#34)

In "evict" function in v/vm.c, when evict a dirty page in user space, memcpy should be from that page, rather than to evicted page.
81e58d00 — liweiwei90 3 years ago
update riscv_arch.h to support QEMU (#31)

* update riscv_arch.h to support QEMU:
  add size attribute for tohost/fromhost
  add writing zero to (tohost + 4) to write_tohost

* revert the align of tohost/fromhost to 64 bytes
0666378f — Andrew Waterman 3 years ago
Update encoding.h to add new PTE_ macros
eb1fba5d — Daniel Lustig 3 years ago
Fix __clear_cache(0, 0) compilation issue (#30)

See also https://github.com/riscv/riscv-pk/pull/240
1d9e7eaa — Andrew Waterman 4 years ago
Merge pull request #27 from bucaps/satp_stval-fixes

Minor clang-related fixes
6f817923 — Gokturk Yuksek 4 years ago
v/entry.S: replace sbadaddr with stval

The RISC-V Privileged ISA v1.10 uses stval instead of
sbadaddr. Although GCC can cope with sbadaddr, clang cannot. It fails
with:

  error: operand must be a valid system register name or an integer in
  the range [0, 4095]
9fca1255 — Gokturk Yuksek 4 years ago
Replace sptbr with satp throughout

The RISC-V Privileged ISA v1.10 uses satp instead of sptbr. Although
GCC can cope with sptbr, clang cannot. It fails with:

  error: operand must be a valid system register name or an integer in
  the range [0, 4095]

Modified the variable name in vm.c as well to ensure consistency and
avoid possible confusion.
43d3d538 — Andrew Waterman 4 years ago
Merge pull request #26 from SandeepRajendran/master

Unconditionally clear mie register while disabling interrupts.
1a3f2490 — Sandeep Rajendran 4 years ago
unconditionally clear mie register
4d4a4352 — Andrew Waterman 4 years ago
Merge pull request #24 from wuzhy/master

fix a building error
9041acee — Zhi Yong Wu 4 years ago
fix a building error

riscv64-unknown-elf-gcc -march=rv32g -mabi=ilp32 -static -mcmodel=medany -fvisibility=hidden -nostdlib -nostartfiles -DENTROPY=0xf7930f7 -std=gnu99 -O2 -I/data/riscv/riscv-tools/riscv-tests/isa/../env/v -I/data/riscv/riscv-tools/riscv-tests/isa/macros/scalar -T/data/riscv/riscv-tools/riscv-tests/isa/../env/v/link.ld /data/riscv/riscv-tools/riscv-tests/isa/../env/v/entry.S /data/riscv/riscv-tools/riscv-tests/isa/../env/v/*.c rv32ui/simple.S -o rv32ui-v-simple
/opt/riscv/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../riscv64-unknown-elf/bin/ld: /tmp/cc8oFAkO.o: in function `tohost':
(.tohost+0x0): multiple definition of `tohost'; /tmp/ccOTKaAa.o:(.sbss+0x10): first defined here
/opt/riscv/lib/gcc/riscv64-unknown-elf/10.1.0/../../../../riscv64-unknown-elf/bin/ld: /tmp/cc8oFAkO.o: in function `fromhost':
(.tohost+0x40): multiple definition of `fromhost'; /tmp/ccOTKaAa.o:(.sbss+0x8): first defined here
collect2: error: ld returned 1 exit status
/data/riscv/riscv-tools/riscv-tests/isa/Makefile:74: recipe for target 'rv32ui-v-simple' failed
make[1]: *** [rv32ui-v-simple] Error 1
make[1]: Leaving directory '/data/riscv/riscv-tools/riscv-tests/isa'
Makefile:28: recipe for target 'isa' failed
make: *** [isa] Error 2

Signed-off-by: Zhi Yong Wu <zhiyong.wu@sophgo.com>
2f75dc29 — Andrew Waterman 4 years ago
Merge pull request #23 from chihminchao/rvv-0.9

Rvv 0.9
7a4e5998 — Chih-Min Chao 4 years ago
encoding: add new vector instruction in spec 0.9

1. add rtz rounding instructions
2. add vfslide instructions

Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
48c6d7cf — Chih-Min Chao 4 years ago
encoding: add new VCSR for vector 0.9

Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
197385c3 — Chih-Min Chao 4 years ago
encoding: update csr definition

Signed-off-by: Chih-Min Chao <chihmin.chao@sifive.com>
Next
Do not follow this link