This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: monitor instruction bug?
- From: "H. J. Lu" <hjl at lucon dot org>
- To: root <daly at axiom-developer dot org>
- Cc: bug-binutils at gnu dot org, binutils at sources dot redhat dot com
- Date: Mon, 10 Oct 2005 12:38:20 -0700
- Subject: Re: monitor instruction bug?
- References: <200510101913.j9AJDCB13821@localhost.localdomain>
On Mon, Oct 10, 2005 at 03:13:12PM -0400, root wrote:
>
> mwait ; 0F 01 C9
>
> generates:
>
> 0f sidt (bad)
> 01 c9 add ecx,ecx
>
>
> (ref: p3-556 IA-32 Intel Architecture Software Developer's Manual
> Vol 2A: Instruction Set Reference, A-M Order Number 253666)
>
You can't take a byte out of context for ia32 instruction. I have no
problem:
[hjl@gnu-d tmp]$ cat 1.s
pause
monitor
mwait
[hjl@gnu-d tmp]$ gcc -c 1.s -m32
[hjl@gnu-d tmp]$ objdump -d 1.o
1.o: file format elf32-i386
Disassembly of section .text:
00000000 <.text>:
0: f3 90 pause
2: 0f 01 c8 monitor %eax,%ecx,%edx
5: 0f 01 c9 mwait %eax,%ecx
H.J.