Skip to content

Commit a06cc5c

Browse files
committed
test: add riscv-hyp-tests
1 parent 87264c2 commit a06cc5c

2 files changed

Lines changed: 2152 additions & 0 deletions

File tree

test/sw/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,20 @@ $(DEPS_DIR)/riscv-tests/: $(DEPS_DIR)/patches/riscv-tests.patch $(DEPS_DIR)/patc
5252
cd $(DEPS_DIR)/riscv-tests && git apply $(DEPS_DIR)/patches/riscv-tests-fencet.patch
5353
cd $(DEPS_DIR)/riscv-tests/env && git apply $(DEPS_DIR)/patches/riscv-tests-env.patch
5454

55+
$(DEPS_DIR)/riscv-hyp-tests/: $(DEPS_DIR)/patches/riscv-hyp-tests.patch
56+
git clone https://github.com/josecm/riscv-hyp-tests.git $(DEPS_DIR)/riscv-hyp-tests
57+
cd $(DEPS_DIR)/riscv-hyp-tests && git apply $(DEPS_DIR)/patches/riscv-hyp-tests.patch
58+
5559
.PHONY: riscv-tests
5660
riscv-tests: | $(DEPS_DIR)/riscv-tests/
5761
@mkdir -p $(DEPS_DIR)/riscv-tests/build
5862
cd $(DEPS_DIR)/riscv-tests/build && ../configure && make isa
5963

64+
.PHONY: riscv-hyp-tests
65+
riscv-hyp-tests: | $(DEPS_DIR)/riscv-hyp-tests/
66+
make -C $(DEPS_DIR)/riscv-hyp-tests PLAT=cva6 LOG_LEVEL=LOG_DETAIL
67+
$(RV_OBJCOPY) -O verilog $(DEPS_DIR)/riscv-hyp-tests/build/cva6/rvh_test.elf $(DEPS_DIR)/riscv-hyp-tests/build/cva6/rvh_test.hex
68+
6069
.PHONY: deps
6170
deps: $(DEPS_DIR)/printf
6271

0 commit comments

Comments
 (0)