x86: fix writing to UC_X86_REG_FPCW
This commit is contained in:
@ -642,7 +642,7 @@ int x86_reg_write(struct uc_struct *uc, unsigned int regid, const void *value)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case UC_X86_REG_FPCW:
|
case UC_X86_REG_FPCW:
|
||||||
*(uint16_t*) value = X86_CPU(uc, mycpu)->env.fpuc;
|
X86_CPU(uc, mycpu)->env.fpuc = *(uint16_t *)value;
|
||||||
break;
|
break;
|
||||||
case UC_X86_REG_FPTAG:
|
case UC_X86_REG_FPTAG:
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user