File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
5660riscv-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
6170deps : $(DEPS_DIR ) /printf
6271
You can’t perform that action at this time.
0 commit comments