b97028b8c5
While we set env->bins when unwinding for ILLEGAL_INST, from e.g. csrrw, we weren't setting it for immediately illegal instructions. Add a testcase for mtval via both exception paths. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1060 Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Alistair Francis <alistair.francis@wdc.com> Message-Id: <20220604231004.49990-2-richard.henderson@linaro.org> Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
22 lines
431 B
Makefile
22 lines
431 B
Makefile
#
|
|
# RISC-V system tests
|
|
#
|
|
|
|
TEST_SRC = $(SRC_PATH)/tests/tcg/riscv64
|
|
VPATH += $(TEST_SRC)
|
|
|
|
LINK_SCRIPT = $(TEST_SRC)/semihost.ld
|
|
LDFLAGS = -T $(LINK_SCRIPT)
|
|
CFLAGS += -g -Og
|
|
|
|
%.o: %.S
|
|
$(CC) $(CFLAGS) $< -c -o $@
|
|
%: %.o $(LINK_SCRIPT)
|
|
$(LD) $(LDFLAGS) $< -o $@
|
|
|
|
QEMU_OPTS += -M virt -display none -semihosting -device loader,file=
|
|
|
|
EXTRA_RUNS += run-issue1060
|
|
run-issue1060: issue1060
|
|
$(call run-test, $<, $(QEMU) $(QEMU_OPTS)$<)
|