This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

swapgs fix for x86_64


Hi,

current swapgs encoding isn't valid. Here a fix.
I am also working on a correct implementation for the disasssembler, but
this need some more tests, since this opcode use one invalid encoding of
invlpg.

Index: ChangeLog
===================================================================
RCS file: /cvs/src/src/include/opcode/ChangeLog,v
retrieving revision 1.109
diff -u -r1.109 ChangeLog
--- ChangeLog	2001/01/14 05:14:45	1.109
+++ ChangeLog	2001/01/24 01:00:04
@@ -1,3 +1,7 @@
+Wed Jan 24 01:58:06 CET 2001 Karsten Keil <kkeil@suse.de>
+
+	* i386.h (i386_optab): Fix swapgs
+
 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
 
 	* hppa.h: Describe new '<' and '>' operand types, and tidy
Index: i386.h
===================================================================
RCS file: /cvs/src/src/include/opcode/i386.h,v
retrieving revision 1.25
diff -u -r1.25 i386.h
--- i386.h	2001/01/13 09:05:55	1.25
+++ i386.h	2001/01/24 01:00:05
@@ -1306,7 +1306,7 @@
 /* AMD extensions. */
 {"syscall",	0,0x0f05, X, CpuK6,	 NoSuf,			{ 0, 0, 0} },
 {"sysret",	0,0x0f07, X, CpuK6,	 lq_Suf|DefaultSize,	{ 0, 0, 0} },
-{"swapgs",	0,0x0f01, 7, Cpu64,	 NoSuf,			{ 0, 0, 0} },
+{"swapgs",	0,0x0f01, 0xf8, Cpu64,	 NoSuf|ImmExt,		{ 0, 0, 0} },
 
 /* sentinel */
 {NULL, 0, 0, 0, 0, 0, { 0, 0, 0} }


-- 
Karsten Keil
SuSE Labs
ISDN development

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]