qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] x86_64 Linux gcc4 support


From: Alexander Graf
Subject: [Qemu-devel] [PATCH] x86_64 Linux gcc4 support
Date: Wed, 12 Dec 2007 14:21:22 +0100

Hi,

by mere accident I fixed the gcc4 Linux x86_64 support. Originally I was tracking down a bug in the Mac OS version and wanted to compare the outputs of the Linux version with the Mac one when I realized that a gcc4 compiled qemu does not work on x86_64 Linux. The symptoms were very similar to those I saw on Darwin though (TB jumping), so I transferred the MACH-O / Apple patch to ELF / Linux and it just worked. Basically this enables USE_DIRECt_JUMP for x86_64. I have no clue why the "default case" breaks, but DIRECT_JUMP is faster anyway, so I don't really care.

Tested with openSUSE 10.3 (gcc 4.3) and x86_64-softmmu.

If this patch breaks any other platform that works with x86_64, please say so and exclude that one from the #ifdef or implement __op_jmp in dyngen. Nevertheless this should give a nice speedup for x86_64 hosts and enables recent gcc4-only (-march) optimizer flags.

Cheers,

Alex

Attachment: qemu-x86_64-gcc4.patch
Description: Binary data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]