mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-08 22:35:35 +00:00
x86: fix writing to UC_X86_REG_FPCW
This commit is contained in:
parent
28b94d10b8
commit
75e5fb466c
|
@ -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:
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue