On 2026-09-11 13:49, Chao Liu wrote:
> Hi Max,
> 
> On Wed, Sep 09, 2026 at 04:41:50PM +0800, Max Chou wrote:
> > Add a bare-metal test for masked vector fault-only-first loads across
> > locked NA4 PMP regions inside one page. The test covers masked-off
> > elements, a faulting active element 0, and later active faults that
> > shorten vl.
> > 
> > Signed-off-by: Max Chou <[email protected]>
> > ---
> >  tests/tcg/riscv64/Makefile.softmmu-target |  13 ++
> >  tests/tcg/riscv64/rvv-ldst.inc            |  91 ++++++++
> >  tests/tcg/riscv64/test-rvv-ldst-ff-pmp.S  | 259 ++++++++++++++++++++++
> >  3 files changed, 363 insertions(+)
> >  create mode 100644 tests/tcg/riscv64/rvv-ldst.inc
> >  create mode 100644 tests/tcg/riscv64/test-rvv-ldst-ff-pmp.S
> > 
> > diff --git a/tests/tcg/riscv64/Makefile.softmmu-target 
> > b/tests/tcg/riscv64/Makefile.softmmu-target
> > index f2c75abd57a..0fdf242f735 100644
> > --- a/tests/tcg/riscv64/Makefile.softmmu-target
> > +++ b/tests/tcg/riscv64/Makefile.softmmu-target
> > @@ -85,5 +85,18 @@ run-test-vle32ff: test-vle32ff
> >     $(call run-test, $<, $(QEMU) -cpu rv64$(comma)v=true $(QEMU_OPTS)$<)
> >  test-vle32ff: CFLAGS += -march=rv64gcv
> >  
> > +RVV_LDST_MARCH = -march=rv64gcv
> > +RVV_LDST_TESTS = test-rvv-ldst-ff-pmp
> > +CLEANFILES += $(RVV_LDST_TESTS)
> > +
> > +$(RVV_LDST_TESTS): %: %.S rvv-ldst.inc $(LINK_SCRIPT)
> > +   $(CC) $(CFLAGS) $(RVV_LDST_MARCH) $< -Wa,--noexecstack -c -o [email protected]
> > +   $(LD) $(LDFLAGS) [email protected] -o $@
> > +
> > +EXTRA_RUNS += run-test-rvv-ldst-ff-pmp
> > +
> > +run-test-rvv-ldst-ff-pmp: test-rvv-ldst-ff-pmp
> > +   $(call run-test, $<, $(QEMU) -cpu 
> > rv64$(comma)v=true$(comma)vlen=128$(comma)elen=64$(comma)vext_spec=v1.0$(comma)rvv_ta_all_1s=true$(comma)rvv_ma_all_1s=true
> >  $(QEMU_OPTS)$<)
> > +
> Just a heads-up, TCG tests are moving to Meson build, so this needs to be
> based on:
> 
> https://lore.kernel.org/qemu-devel/[email protected]/
> 
> Thanks,
> Chao

Hi Chao,

Thanks for the information. Daniel also shared the same information to
me.I will send v2 for this TCG test build flow.

Thanks,
rnax

Reply via email to