Finally fix moves from/to CR/DR registers

This commit is contained in:
Alexis Engelke
2019-11-02 21:48:36 +01:00
parent 96ba1a1166
commit 92e104d411
2 changed files with 9 additions and 9 deletions

View File

@@ -212,7 +212,7 @@ decode_modrm(const uint8_t* buffer, int len, DecodeMode mode, FdInstr* instr,
out_o2->reg = reg_idx;
}
if (mod == 3)
if (mod == 3 || instr->type == FDI_MOV_CR || instr->type == FDI_MOV_DR)
{
uint8_t reg_idx = rm;
#if defined(ARCH_X86_64)