Run the memory test under icount record and replay, copied from aarch64. Signed-off-by: Joel Stanley <[email protected]> --- tests/tcg/riscv64/Makefile.softmmu-target | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+)
diff --git a/tests/tcg/riscv64/Makefile.softmmu-target b/tests/tcg/riscv64/Makefile.softmmu-target index 82e8fe2664b0..3f2a8ed16142 100644 --- a/tests/tcg/riscv64/Makefile.softmmu-target +++ b/tests/tcg/riscv64/Makefile.softmmu-target @@ -75,3 +75,22 @@ EXTRA_RUNS += $(MULTIARCH_RUNS) # Default is zicclsm=true, so misaligned accesses must work memory: private CFLAGS += -DCHECK_UNALIGNED=1 + +# Simple Record/Replay Test +.PHONY: memory-record +run-memory-record: memory-record memory + $(call run-test, $<, \ + $(QEMU) -monitor none \ + -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ + -icount shift=5$(COMMA)rr=record$(COMMA)rrfile=record.bin \ + $(QEMU_OPTS) memory) + +.PHONY: memory-replay +run-memory-replay: memory-replay run-memory-record + $(call run-test, $<, \ + $(QEMU) -monitor none \ + -chardev file$(COMMA)path=$<.out$(COMMA)id=output \ + -icount shift=5$(COMMA)rr=replay$(COMMA)rrfile=record.bin \ + $(QEMU_OPTS) memory) + +EXTRA_RUNS += run-memory-replay -- 2.47.3
