flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > VT-x instructions problem

Author
Thread Post new topic Reply to topic
Hunter



Joined: 07 Jun 2006
Posts: 41
Hunter 20 May 2008, 06:48
Hello! I've tried to use 64-bit VMX instructions like
VMREAD qword [rbx], rax
VMWRITE rax, qword [rbx]
but got error "Invalid size of operand". In the Intel manual volume 2B is written:
VMREAD r/m64, r64
VMWRITE r64, r/m64
But FASM allows to use only the following syntax:
vmread qword [rbx], eax
vmwrite eax, qword [rbx]
Is it right?
Post 20 May 2008, 06:48
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 20 May 2008, 06:53
I personally wouldn't be surprised if VT-x instructions were broken... Intel has some mistakes in manual, because of which we don't know which way the rm/r or r/rm is.
Post 20 May 2008, 06:53
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Hunter



Joined: 07 Jun 2006
Posts: 41
Hunter 20 May 2008, 08:01
No, I think it's equal to instructions like mov cr0, rax. Such instructions are 64-bit by default.
Post 20 May 2008, 08:01
View user's profile Send private message Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid 20 May 2008, 08:30
oh... I missed your point. I thouth you was speaking about order of "rm/r" or "r/rm", because this is quite unclear from manual.

Seems that these instructions are REALLY broken Smile I'll move it to compiler internals for Tomasz.
Post 20 May 2008, 08:30
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 09 Jul 2008, 16:53
Fixed in 1.67.28.
Post 09 Jul 2008, 16:53
View user's profile Send private message Visit poster's website Reply with quote
Mac2004



Joined: 15 Dec 2003
Posts: 314
Mac2004 11 Jul 2008, 08:11
Tomasz Grysztar wrote:
Fixed in 1.67.28.


Version 1.67.26 seems to be present at the download section, but I cannot find version 1.67.28.

Regards,
Mac2004
Post 11 Jul 2008, 08:11
View user's profile Send private message Reply with quote
Tomasz Grysztar



Joined: 16 Jun 2003
Posts: 8359
Location: Kraków, Poland
Tomasz Grysztar 11 Jul 2008, 09:19
Because it's not released yet - I still have couple more of bugs to fix.

Neverthelress, since I forgot to release 1.67.27 in the meantime anyway, I'm renaming it back to 1.67.27 - with this number it will get released soon.
Post 11 Jul 2008, 09:19
View user's profile Send private message Visit poster's website Reply with quote
Mac2004



Joined: 15 Dec 2003
Posts: 314
Mac2004 12 Jul 2008, 06:46
Ok, I'll be waiting to get a copy of version 1.67.27. Smile

regrads,
Mac2004
Post 12 Jul 2008, 06:46
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.