[Bug 15577] compilation syntax error
wine-bugs at winehq.org
wine-bugs at winehq.org
Sat Oct 11 03:28:44 CDT 2008
http://bugs.winehq.org/show_bug.cgi?id=15577
--- Comment #2 from Frank J R Hanstick <trog24 at comcast.net> 2008-10-11 03:28:44 ---
This is really strange since in port.c, you have PPC assembler code (yes, I
have been working with computers long enough to recognize the difference
between Intel - including it derivatives - and PowerPC along with another other
kinds of processor you may bring up assembly code) which will not run under
Intel unless there is a PPC emulator.
Code from Port.c:
#elif defined(__powerpc__) && defined(__APPLE__)
__ASM_GLOBAL_FUNC( wine_switch_to_stack,
"mtctr r3\n\t" /* func -> ctr */
"mr r3,r4\n\t" /* args -> function param 1 (r3) */
"mr r1,r5\n\t" /* stack */
"subi r1,r1,0x100\n\t" /* adjust stack pointer */
"bctrl\n" /* call ctr */
"1:\tb 1b") /* loop */
#elif defined(__powerpc__) && defined(__GNUC__)
__ASM_GLOBAL_FUNC( wine_switch_to_stack,
"mtctr 3\n\t" /* func -> ctr */
"mr 3,4\n\t" /* args -> function param 1 (r3) */
"mr 1,5\n\t" /* stack */
"subi 1, 1, 16\n\t" /* allocate space for the callee */
"li 0, 0\n\t" /* load zero */
"stw 0, 0(1)\n\t" /* create a bottom stack frame */
"bctrl\n\t" /* call ctr */
"1:\tb 1b") /* loop */
I am well aware that code compiled for one computer will not run on another
computer with a different processor type which is why the compilation process
from a common higher level code in the first place.
I am also aware that Wine is not a emulator; but, it can run on top of an
emulator such as qemu if I can just qemu to recognize a Wine build.
--
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.
More information about the wine-bugs
mailing list