Re: [RFC PATCH v2 42/44] target/loongarch: Implement vld vst

2023-04-03 Thread Richard Henderson
On 3/27/23 20:06, Song Gao wrote: +void HELPER(vld_b)(CPULoongArchState *env, uint32_t vd, target_ulong addr) +{ +int i; +VReg *Vd = &(env->fpr[vd].vreg); +#if !defined(CONFIG_USER_ONLY) +MemOpIdx oi = make_memop_idx(MO_TE | MO_UNALN, cpu_mmu_index(env, false)); + +for (i = 0; i <

[RFC PATCH v2 42/44] target/loongarch: Implement vld vst

2023-03-27 Thread Song Gao
This patch includes: - VLD[X], VST[X]; - VLDREPL.{B/H/W/D}; - VSTELM.{B/H/W/D}. Signed-off-by: Song Gao --- target/loongarch/disas.c| 34 +++ target/loongarch/helper.h | 12 + target/loongarch/insn_trans/trans_lsx.c.inc | 70 + target/loongarch/insns.