[PATCH 18/23] target/riscv: Build MemOpIdx to vext_ldff

Richard Henderson <[email protected]>
Newsgroups org.nongnu.qemu-riscv,org.nongnu.qemu-devel
Message-ID <[email protected]>
Use mmu data passed in with VDATA.

Signed-off-by: Richard Henderson <[email protected]>
---
 target/riscv/tcg/vector_helper.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/target/riscv/tcg/vector_helper.c b/target/riscv/tcg/vector_helper.c
index 5ead4cd6fe..9c643f60ec 100644
--- a/target/riscv/tcg/vector_helper.c
+++ b/target/riscv/tcg/vector_helper.c
@@ -720,7 +720,8 @@ vext_ldff(void *vd, void *v0, target_ulong base, CPURISCVState *env,
     uint32_t msize = nf * esz;
     uint32_t vma = vext_vma(desc);
     target_ulong addr, last, last_in_page, page_split, elems;
-    int mmu_index = riscv_env_mmu_index(env, false);
+    MemOpIdx oi = vext_oi(desc, log2_esz);
+    int mmu_index = get_mmuidx(oi);
     bool first_active;
     int flags;
     void *host;
-- 
2.43.0
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.