qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH] Darwin asm fix


From: Gwenole Beauchesne
Subject: Re: [Qemu-devel] [PATCH] Darwin asm fix
Date: Tue, 20 Jan 2004 21:18:33 +0100

Hi,

This other patch fix the compilation of op.c under darwin. The changed line is in exec-all.h, and it is related to the different syntax used in linux and darwin's ld. In this case Darwin's ld wants '.data' whereas Linux's ld expects '.section ".data"'.

I would also like to point out another perticularity of Apple assembler. Contrary to the documentation, multiple statements on the same line separated by ';' does not work on Darwin/PPC (e.g. MacOS X 10.2) because ';' is also the comment delimiter there. This was a point of frustration when I ported SheepShaver to Darwin/X11.

In practise, and since you appear to forcibly define __powerpc__ (though __ppc__ exists), this means that you will have to arrange testandset() asm statements to use \n instead of ';' as the instruction separator.

Bye,
Gwenole.





reply via email to

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