x86: fix writing to UC_X86_REG_FPCW

This commit is contained in:
Nguyen Anh Quynh 2016-03-14 09:27:46 +08:00
parent 28b94d10b8
commit 75e5fb466c

View file

@ -642,7 +642,7 @@ int x86_reg_write(struct uc_struct *uc, unsigned int regid, const void *value)
}
break;
case UC_X86_REG_FPCW:
*(uint16_t*) value = X86_CPU(uc, mycpu)->env.fpuc;
X86_CPU(uc, mycpu)->env.fpuc = *(uint16_t *)value;
break;
case UC_X86_REG_FPTAG:
{