Re: [edk2-devel] ovmf miscompiles with gcc-12

2022-06-08 Thread Jiri Slaby
Hi, On 07. 06. 22, 12:31, Gerd Hoffmann wrote: The reason is TemporaryRamMigration() overwrites rbp unconditionally -- it adds an offset to rbp even if rbp is NOT used as a frame pointer Now, what is the right way to fix this? Do the SetJump/LongJump in assembly and wrap it into push rbp/pop

Re: [edk2-devel] ovmf miscompiles with gcc-12

2022-06-08 Thread Jiri Slaby
On 07. 06. 22, 13:07, Gerd Hoffmann wrote: On Tue, Jun 07, 2022 at 12:38:46PM +0200, Jiri Slaby wrote: Hi, On 07. 06. 22, 12:31, Gerd Hoffmann wrote: The reason is TemporaryRamMigration() overwrites rbp unconditionally -- it adds an offset to rbp even if rbp is NOT used as a frame pointer

[edk2-devel] ovmf miscompiles with gcc-12

2022-05-19 Thread Jiri Slaby
Hi, we discovered that qemu-ovmf-x86_64 doesn't start when compiled using gcc-12. Originally reported as: https://bugzilla.suse.com/show_bug.cgi?id=1199597 I run qemu as: qemu-kvm -drive file=/dev/null,format=raw -drive if=pflash,format=raw,unit=0,readonly=on,file=OVMF.fd -m 3000 The platfo