[Qemu-devel] [RFC PATCH 5/9] arm/cpu.h: align VFP registers

Alex Bennée posted 9 patches 8 years, 5 months ago
[Qemu-devel] [RFC PATCH 5/9] arm/cpu.h: align VFP registers
Posted by Alex Bennée 8 years, 5 months ago
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
---
 target/arm/cpu.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/target/arm/cpu.h b/target/arm/cpu.h
index b39d64aa0b..cdd47cb868 100644
--- a/target/arm/cpu.h
+++ b/target/arm/cpu.h
@@ -457,8 +457,8 @@ typedef struct CPUARMState {
          * the two execution states, and means we do not need to explicitly
          * map these registers when changing states.
          */
-        float64 regs[64];
-
+        float64 regs[64] __attribute__((aligned(16)));
+        /* VFP system registers */
         uint32_t xregs[16];
         /* We store these fpcsr fields separately for convenience.  */
         int vec_len;
-- 
2.13.0


Re: [Qemu-devel] [RFC PATCH 5/9] arm/cpu.h: align VFP registers
Posted by Richard Henderson 8 years, 5 months ago
On 08/17/2017 11:04 AM, Alex Bennée wrote:
> Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> ---
>  target/arm/cpu.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)

Reviewed-by: Richard Henderson <richard.henderson@linaro.org>


r~