Rebuild flags after writing to cp registers

This is buggy as this momemt per https://github.com/unicorn-engine/unicorn/issues/1789#issuecomment-1546807410

We need either doc this or save more information for a context
This commit is contained in:
mio 2023-05-14 13:35:10 +02:00
parent f65f8f8380
commit a24e53d794
No known key found for this signature in database
GPG Key ID: DFF27E34A47CB873

View File

@ -323,6 +323,7 @@ static uc_err reg_write(CPUARMState *env, unsigned int regid, const void *value)
break;
case UC_ARM64_REG_CP_REG:
ret = write_cp_reg(env, (uc_arm64_cp_reg *)value);
arm_rebuild_hflags(env);
break;
case UC_ARM64_REG_FPCR:
vfp_set_fpcr(env, *(uint32_t *)value);