On 26.09.2026 14:23, Brian Cain wrote:
Signed-off-by: Brian Cain <[email protected]>
---
  target/hexagon/gen_tcg_hvx.h            | 242 ++++++++++++------------
  target/hexagon/mmvec/macros.h           |   8 +-
  target/hexagon/genptr.c                 |  18 +-
  target/hexagon/mmvec/system_ext_mmvec.c |   8 +-
  target/hexagon/op_helper.c              |  34 ++--
  5 files changed, 152 insertions(+), 158 deletions(-)

diff --git a/target/hexagon/mmvec/system_ext_mmvec.c 
b/target/hexagon/mmvec/system_ext_mmvec.c
index 081cadd814a..b796bad72a6 100644
--- a/target/hexagon/mmvec/system_ext_mmvec.c
+++ b/target/hexagon/mmvec/system_ext_mmvec.c
@@ -21,15 +21,13 @@
void mem_gather_store(CPUHexagonState *env, target_ulong vaddr, int slot)
  {
-    size_t size = sizeof(MMVector);
-
      env->vstore_pending[slot] = 1;
      env->vstore[slot].va   = vaddr;
-    env->vstore[slot].size = size;
-    memcpy(&env->vstore[slot].data, &env->tmp_VRegs[0], size);
+    env->vstore[slot].size = MAX_VEC_SIZE_BYTES;
+    memcpy(&env->vstore[slot].data, &env->tmp_VRegs[0], sizeof(MMVector));
Shouldn't memcpy use MAX_VEC_SIZE_BYTES too?

Reply via email to