Skip to contentSkip to conversation

qemu optimizations for x86

Qemu-devel Joseph Miller 2 participants 2 messages Dec 30, 2005

lore
Share & tools
lore
#0 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I have been using an compiler-optimized version of qemu for several weeks now on an x86 with much success. Qemu has not crashed one single time and I have seen a noticeable performance increase. What I have done is added "-finline-functions -funroll-loops" to the CFLAGS, but I made sure that it would not be added to OP_CFLAGS. This ensures that every file is compiled with the optimizations *except* op.c, which should not have these flags. If op.c is compiled with these flags, crashes will be too often to make it usable. So the actual processor emulation may not be optimized any more, but all of the peripherals and hardware emulators will be. Simply install the patch and then configure with '--enable-x86-optimize'.

- -Joseph
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFDtapmmXZROF+EADURAs6CAJ9nKXpoGEUc8XDYi5eCrrk3yqinjACfVZ7/ UeUXZmc8rwaGxjOfVmhB6vQ=
=A2KN
-----END PGP SIGNATURE-----

#1 lore raw
Quoted 3 lines · Joseph Miller

I have been using an compiler-optimized version of qemu for several weeks now on an x86 with much success. Qemu has not crashed one single time and I have seen a noticeable performance increase.

Do you have any actual performance numbers?

Why are these x86 specific?

Paul