[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 06/11] target/arm: Enforce alignment for VLDM/VSTM
From: |
Richard Henderson |
Subject: |
[PATCH 06/11] target/arm: Enforce alignment for VLDM/VSTM |
Date: |
Tue, 24 Nov 2020 20:06:37 -0800 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/translate-vfp.c.inc | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/target/arm/translate-vfp.c.inc b/target/arm/translate-vfp.c.inc
index 96948f5a2d..58b31ecc3f 100644
--- a/target/arm/translate-vfp.c.inc
+++ b/target/arm/translate-vfp.c.inc
@@ -1065,12 +1065,14 @@ static bool trans_VLDM_VSTM_sp(DisasContext *s,
arg_VLDM_VSTM_sp *a)
for (i = 0; i < n; i++) {
if (a->l) {
/* load */
- gen_aa32_ld32u(s, tmp, addr, get_mem_index(s));
+ gen_aa32_ld_i32(s, tmp, addr, get_mem_index(s),
+ MO_UL | MO_ALIGN | s->be_data);
vfp_store_reg32(tmp, a->vd + i);
} else {
/* store */
vfp_load_reg32(tmp, a->vd + i);
- gen_aa32_st32(s, tmp, addr, get_mem_index(s));
+ gen_aa32_st_i32(s, tmp, addr, get_mem_index(s),
+ MO_UL | MO_ALIGN | s->be_data);
}
tcg_gen_addi_i32(addr, addr, offset);
}
@@ -1148,12 +1150,14 @@ static bool trans_VLDM_VSTM_dp(DisasContext *s,
arg_VLDM_VSTM_dp *a)
for (i = 0; i < n; i++) {
if (a->l) {
/* load */
- gen_aa32_ld64(s, tmp, addr, get_mem_index(s));
+ gen_aa32_ld_i64(s, tmp, addr, get_mem_index(s),
+ MO_Q | MO_ALIGN_4 | s->be_data);
vfp_store_reg64(tmp, a->vd + i);
} else {
/* store */
vfp_load_reg64(tmp, a->vd + i);
- gen_aa32_st64(s, tmp, addr, get_mem_index(s));
+ gen_aa32_st_i64(s, tmp, addr, get_mem_index(s),
+ MO_Q | MO_ALIGN_4 | s->be_data);
}
tcg_gen_addi_i32(addr, addr, offset);
}
--
2.25.1
- [PATCH for-6.0 00/11] target/arm: enforce alignment, Richard Henderson, 2020/11/24
- [PATCH 01/11] target/arm: Enforce word alignment for LDRD/STRD, Richard Henderson, 2020/11/24
- [PATCH 02/11] target/arm: Enforce alignment for LDA/LDAH/STL/STLH, Richard Henderson, 2020/11/24
- [PATCH 03/11] target/arm: Enforce alignment for LDM/STM, Richard Henderson, 2020/11/24
- [PATCH 04/11] target/arm: Enforce alignment for RFE, Richard Henderson, 2020/11/24
- [PATCH 05/11] target/arm: Enforce alignment for SRS, Richard Henderson, 2020/11/24
- [PATCH 06/11] target/arm: Enforce alignment for VLDM/VSTM,
Richard Henderson <=
- [PATCH 07/11] target/arm: Enforce alignment for VLDR/VSTR, Richard Henderson, 2020/11/24
- [PATCH 09/11] target/arm: Enforce alignment for VLDn/VSTn (multiple), Richard Henderson, 2020/11/24
- [PATCH 08/11] target/arm: Enforce alignment for VLD1 (all lanes), Richard Henderson, 2020/11/24
- [PATCH 11/11] target/arm: Enforce alignment for VLDn/VSTn (single), Richard Henderson, 2020/11/24
- [PATCH 10/11] target/arm: Fix decode of align in VLDST_single, Richard Henderson, 2020/11/24