peterdelevoryas / rpms / qemu

Forked from rpms/qemu 2 years ago
Clone

Blame 0002-tcg-arm-Increase-stack-alignment-for-function-genera.patch

c52739
From 319935db129085bf4a3886dfd5662c687e6ce814 Mon Sep 17 00:00:00 2001
c52739
From: "Richard W.M. Jones" <rjones@redhat.com>
c52739
Date: Wed, 1 Sep 2021 17:12:20 +0100
c52739
Subject: [PATCH 2/2] tcg/arm: Increase stack alignment for function generation
c52739
c52739
This avoids the following assertion when the kernel initializes X.509
c52739
certificates:
c52739
c52739
[    7.315373] Loading compiled-in X.509 certificates
c52739
qemu-system-arm: ../tcg/tcg.c:3063: temp_allocate_frame: Assertion `align <= TCG_TARGET_STACK_ALIGN' failed.
c52739
c52739
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
c52739
---
c52739
 tcg/arm/tcg-target.h | 2 +-
c52739
 1 file changed, 1 insertion(+), 1 deletion(-)
c52739
c52739
diff --git a/tcg/arm/tcg-target.h b/tcg/arm/tcg-target.h
c52739
index d113b7f8db..5c8f3f8c55 100644
c52739
--- a/tcg/arm/tcg-target.h
c52739
+++ b/tcg/arm/tcg-target.h
c52739
@@ -115,7 +115,7 @@ extern bool use_neon_instructions;
c52739
 #endif
c52739
 
c52739
 /* used for function call generation */
c52739
-#define TCG_TARGET_STACK_ALIGN		8
c52739
+#define TCG_TARGET_STACK_ALIGN		16
c52739
 #define TCG_TARGET_CALL_ALIGN_ARGS	1
c52739
 #define TCG_TARGET_CALL_STACK_OFFSET	0
c52739
 
c52739
-- 
c52739
2.32.0
c52739