mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-27 03:51:15 +08:00
opcodes/
2005-04-01 Jan Beulich <jbeulich@novell.com> * 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.
This commit is contained in:
parent
373ff435a8
commit
6128c599ed
@ -1,3 +1,9 @@
|
|||||||
|
2005-04-01 Jan Beulich <jbeulich@novell.com>
|
||||||
|
|
||||||
|
* 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 <jbeulich@novell.com>
|
2005-04-01 Jan Beulich <jbeulich@novell.com>
|
||||||
|
|
||||||
* i386-dis.c (INVLPG_Fixup): Decode rdtscp; change code to allow for
|
* i386-dis.c (INVLPG_Fixup): Decode rdtscp; change code to allow for
|
||||||
|
@ -4374,16 +4374,32 @@ PNI_Fixup (int extrachar ATTRIBUTE_UNUSED, int sizeflag)
|
|||||||
{
|
{
|
||||||
/* mwait %eax,%ecx */
|
/* mwait %eax,%ecx */
|
||||||
strcpy (p, "mwait");
|
strcpy (p, "mwait");
|
||||||
|
if (!intel_syntax)
|
||||||
|
strcpy (op1out, names32[0]);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* monitor %eax,%ecx,%edx" */
|
/* monitor %eax,%ecx,%edx" */
|
||||||
strcpy (p, "monitor");
|
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++;
|
codep++;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user