This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: monitor instruction bug?


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.


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