File prefix-Specify-i486-architecture-for-LZM.patch of Package qemu.37352

From: Michael Brown <mcb30@ipxe.org>
Date: Wed, 12 May 2021 10:09:33 +0100
Subject: [prefix] Specify i486 architecture for LZMA decompressor
 (bsc#1219733, bsc#1219722)

The decompressor uses the i486 "bswap" instruction, but does not
require any instructions that exist only on i586 or above.  Update the
".arch" directive to reflect the requirements of the code as
implemented.

Reported-by: Martin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
(cherry picked from commit 13c1abe10abd1c24307a6777b6cedfc5b46b088d)
References: bsc#1219733
References: bsc#1219722
Signed-off-by: Dario Faggioli <dfaggioli@suse.com>
---
 src/arch/x86/prefix/unlzma.S | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/roms/ipxe/src/arch/x86/prefix/unlzma.S b/roms/ipxe/src/arch/x86/prefix/unlzma.S
index ce18c756fa655cf03bab8be78166..82d78c331dce9c8116c103d0c686 100644
--- a/roms/ipxe/src/arch/x86/prefix/unlzma.S
+++ b/roms/ipxe/src/arch/x86/prefix/unlzma.S
@@ -44,7 +44,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
  */
 
 	.text
-	.arch i586
+	.arch i486
 	.section ".prefix.lib", "ax", @progbits
 
 #ifdef CODE16
openSUSE Build Service is sponsored by