[sisyphus] IQ: kernel-image-std-smp-2.6.24-alt0.3

Kirill A. Shutemov =?iso-8859-1?q?k=2Eshutemov_=CE=C1_gmail=2Ecom?=
Ср Фев 27 17:15:21 MSK 2008


On [Wed, 27.02.2008 15:55], Led wrote:
> Не знаю из-за этого или нет, но qemu-kvm в сизифе принудительно собран gcc4.1, 
> а не gcc3.4

Этого делать нельзя:

The issue is that gcc4 optimizes better, but this breaks assumptions of 
QEmu.

Example: The basic idea (simplified!) of QEmu is writing C functions which 
implement the instructions of the target CPU. Then, code to be emulated is 
translated by chaining the _compiled_ functions (corresponding to the 
target code) together, but _leaving_ out the return instruction at the end 
of the function (otherwise, the resulting code would return already after 
the first emulated instruction).

Now, gcc4 can produce code with several return instructions (with no 
option to turn that of, as far as I understand). You cannot cut them out, 
and therefore you cannot chain the simple functions.

-- 
Regards,  Kirill A. Shutemov
 + Belarus, Minsk
 + Velesys Ltd, http://www.velesys.com/
 + ALT Linux Team, http://www.altlinux.com/
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя     : =?iso-8859-1?q?=CF=D4=D3=D5=D4=D3=D4=D7=D5=C5=D4?=
Тип     : application/pgp-signature
Размер  : 197 байтов
Описание: Digital signature
Url     : <http://lists.altlinux.org/pipermail/sisyphus/attachments/20080227/da4a83c3/attachment-0002.bin>


Подробная информация о списке рассылки Sisyphus