SOURCES: nasm-mmx.patch (NEW) - 64-bit MMX register doesn't force ...

qboosh qboosh at pld-linux.org
Mon Aug 6 00:59:59 CEST 2007


Author: qboosh                       Date: Sun Aug  5 22:59:59 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- 64-bit MMX register doesn't force 64-bit x86_64 mode

---- Files affected:
SOURCES:
   nasm-mmx.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/nasm-mmx.patch
diff -u /dev/null SOURCES/nasm-mmx.patch:1.1
--- /dev/null	Mon Aug  6 00:59:59 2007
+++ SOURCES/nasm-mmx.patch	Mon Aug  6 00:59:53 2007
@@ -0,0 +1,11 @@
+--- nasm-0.99.01/assemble.c.orig	2007-05-30 06:27:58.000000000 +0200
++++ nasm-0.99.01/assemble.c	2007-08-06 00:38:39.791773786 +0200
+@@ -1497,7 +1497,7 @@
+ 
+     if (val >= 8)
+ 	rex |= REX_B|REX_X|REX_R;
+-    if (flags & BITS64)
++    if ((flags & BITS64) && !(flags & 0x03000000)) /* 64-bit, but not FPU/MMX */
+ 	rex |= REX_W;
+     if (!(REG_HIGH & ~flags))	/* AH, CH, DH, BH */
+ 	rex |= REX_H;
================================================================


More information about the pld-cvs-commit mailing list