On 7/2/25 05:19, William Kosasih wrote:
This patch adds alignment checks in the load operations in the VLDR_SG
instructions.

Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1154
Signed-off-by: William Kosasih <[email protected]>
---
  target/arm/tcg/mve_helper.c | 42 ++++++++++++++++++++++---------------
  1 file changed, 25 insertions(+), 17 deletions(-)
...
+DO_VLDR_SG(vldrb_sg_sh, MO_UB, int8_t, ldb, 2, int16_t, uint16_t, ADDR_ADD, 
false)
+DO_VLDR_SG(vldrb_sg_sw, MO_UB, int8_t, ldb, 4, int32_t, uint32_t, ADDR_ADD, 
false)
+DO_VLDR_SG(vldrh_sg_sw, MO_TEUW, int16_t, ldw, 4, int32_t, uint32_t, ADDR_ADD, 
false)
...
+DO_VLDR_SG(vldrh_sg_os_sw, MO_TEUW, int16_t, ldw, 4,
+           int32_t, uint32_t, ADDR_ADD_OSH, false)

Use MO_SB, MO_TESW here, as previously mentioned for plugins.

Otherwise,
Reviewed-by: Richard Henderson <[email protected]>


r~

Reply via email to