From: Jan Beulich Date: Fri, 1 Apr 2005 16:06:40 +0000 (+0000) Subject: opcodes/ X-Git-Tag: msnyder-tracepoint-checkpoint-branchpoint~724 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6128c599eda228149fba00fe9d06361dd3a8490c;p=platform%2Fupstream%2Fbinutils.git opcodes/ 2005-04-01 Jan Beulich * i386-dis.c (PNI_Fixup): Neither mwait nor monitor have any visible operands in Intel mode. The first operand of monitor is %rax in 64-bit mode. --- diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index b1ea875..d289c15 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,5 +1,11 @@ 2005-04-01 Jan Beulich + * i386-dis.c (PNI_Fixup): Neither mwait nor monitor have any + visible operands in Intel mode. The first operand of monitor is + %rax in 64-bit mode. + +2005-04-01 Jan Beulich + * i386-dis.c (INVLPG_Fixup): Decode rdtscp; change code to allow for easier future additions. diff --git a/opcodes/i386-dis.c b/opcodes/i386-dis.c index d48e6de..d3acb84 100644 --- a/opcodes/i386-dis.c +++ b/opcodes/i386-dis.c @@ -4374,16 +4374,32 @@ PNI_Fixup (int extrachar ATTRIBUTE_UNUSED, int sizeflag) { /* mwait %eax,%ecx */ strcpy (p, "mwait"); + if (!intel_syntax) + strcpy (op1out, names32[0]); } else { /* monitor %eax,%ecx,%edx" */ strcpy (p, "monitor"); - strcpy (op3out, names32[2]); + if (!intel_syntax) + { + if (!mode_64bit) + strcpy (op1out, names32[0]); + else if (!(prefixes & PREFIX_ADDR)) + strcpy (op1out, names64[0]); + else + { + strcpy (op1out, names32[0]); + used_prefixes |= PREFIX_ADDR; + } + strcpy (op3out, names32[2]); + } + } + if (!intel_syntax) + { + strcpy (op2out, names32[1]); + two_source_ops = 1; } - strcpy (op1out, names32[0]); - strcpy (op2out, names32[1]); - two_source_ops = 1; codep++; }