ports/lang/squeak/files/patch-unix_vm_sqUnixMain.c
John Marino 8a7de1aa78 lang/squeak: Claimed fix for PowerPC
I've no way to test this, but it supposedly fixes the PowerPC build.
Submitter has been notified the port will be removed due to lack of
staging soon.

PR:		184580
Submitted by:	jrh29 (alumni.cwru.edu)
Approved by:	maintainer timeout (8 months)
Approved by:	portmgr (implicit, NO_STAGE)
2014-07-28 14:10:10 +00:00

13 lines
407 B
C

--- unix/vm/sqUnixMain.c.bak 2013-12-05 13:49:51 -0800
+++ unix/vm/sqUnixMain.c
@@ -1334,8 +1334,8 @@
|| defined(POWERPC) || defined(__POWERPC) || defined (__POWERPC__) )
void mtfsfi(unsigned long long fpscr)
{
- __asm__("lfd f0, %0" :: "m"(fpscr));
- __asm__("mtfsf 0xff, f0");
+ __asm__("lfd 0, %0" :: "m"(fpscr));
+ __asm__("mtfsf 0xff, 0");
}
#else
# define mtfsfi(fpscr)