about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2021-03-05 12:26:11 +0100
committerptitSeb <sebastien.chev@gmail.com>2021-03-05 12:26:11 +0100
commit4081890a941f02315397d05402aaaa085429bedc (patch)
tree562ee31ea0d85cc8b9749500ada2d547d6f478c0 /src
parent18b4c66d3629f5e69edc580400a50012e82a66df (diff)
downloadbox64-4081890a941f02315397d05402aaaa085429bedc.tar.gz
box64-4081890a941f02315397d05402aaaa085429bedc.zip
Ajusted REX 0F B6 opcode, as 32bits access to regs always wipe upper part
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64run0f.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/emu/x64run0f.c b/src/emu/x64run0f.c
index cdaf3e4a..d49f8807 100644
--- a/src/emu/x64run0f.c
+++ b/src/emu/x64run0f.c
@@ -75,10 +75,7 @@ int Run0F(x64emu_t *emu, rex_t rex)
             nextop = F8;

             GETEB;

             GETGD;

-            if(rex.w)

-                GD->q[0] = EB->byte[0];

-            else

-                GD->dword[0] = EB->byte[0];

+            GD->q[0] = EB->byte[0];

             break;

 

         default: