[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 02/11] target/arm: Enforce alignment for LDA/LDAH/STL/STLH
From: |
Richard Henderson |
Subject: |
[PATCH 02/11] target/arm: Enforce alignment for LDA/LDAH/STL/STLH |
Date: |
Tue, 24 Nov 2020 20:06:33 -0800 |
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/arm/translate.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/target/arm/translate.c b/target/arm/translate.c
index 17883d00f4..73b3d8cbbf 100644
--- a/target/arm/translate.c
+++ b/target/arm/translate.c
@@ -6876,7 +6876,7 @@ static bool op_stl(DisasContext *s, arg_STL *a, MemOp mop)
static bool trans_STL(DisasContext *s, arg_STL *a)
{
- return op_stl(s, a, MO_UL);
+ return op_stl(s, a, MO_UL | MO_ALIGN);
}
static bool trans_STLB(DisasContext *s, arg_STL *a)
@@ -6886,7 +6886,7 @@ static bool trans_STLB(DisasContext *s, arg_STL *a)
static bool trans_STLH(DisasContext *s, arg_STL *a)
{
- return op_stl(s, a, MO_UW);
+ return op_stl(s, a, MO_UW | MO_ALIGN);
}
static bool op_ldrex(DisasContext *s, arg_LDREX *a, MemOp mop, bool acq)
@@ -7033,7 +7033,7 @@ static bool op_lda(DisasContext *s, arg_LDA *a, MemOp mop)
static bool trans_LDA(DisasContext *s, arg_LDA *a)
{
- return op_lda(s, a, MO_UL);
+ return op_lda(s, a, MO_UL | MO_ALIGN);
}
static bool trans_LDAB(DisasContext *s, arg_LDA *a)
@@ -7043,7 +7043,7 @@ static bool trans_LDAB(DisasContext *s, arg_LDA *a)
static bool trans_LDAH(DisasContext *s, arg_LDA *a)
{
- return op_lda(s, a, MO_UW);
+ return op_lda(s, a, MO_UW | MO_ALIGN);
}
/*
--
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 <=
- [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, 2020/11/24
- [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