mirror of
https://github.com/Vita3K/unicorn.git
synced 2024-11-23 13:29:40 +00:00
Support reg_read and reg_write of fpscr
This commit is contained in:
parent
3e1588270e
commit
ac3e4e764f
@ -98,6 +98,9 @@ int arm_reg_read(struct uc_struct *uc, unsigned int *regs, void **vals, int coun
|
|||||||
case UC_ARM_REG_FPEXC:
|
case UC_ARM_REG_FPEXC:
|
||||||
*(int32_t *)value = ARM_CPU(uc, mycpu)->env.vfp.xregs[ARM_VFP_FPEXC];
|
*(int32_t *)value = ARM_CPU(uc, mycpu)->env.vfp.xregs[ARM_VFP_FPEXC];
|
||||||
break;
|
break;
|
||||||
|
case UC_ARM_REG_FPSCR:
|
||||||
|
*(int32_t *)value = vfp_get_fpscr(&ARM_CPU(uc, mycpu)->env);
|
||||||
|
break;
|
||||||
case UC_ARM_REG_IPSR:
|
case UC_ARM_REG_IPSR:
|
||||||
*(uint32_t *)value = xpsr_read(&ARM_CPU(uc, mycpu)->env) & 0x1ff;
|
*(uint32_t *)value = xpsr_read(&ARM_CPU(uc, mycpu)->env) & 0x1ff;
|
||||||
break;
|
break;
|
||||||
@ -166,6 +169,9 @@ int arm_reg_write(struct uc_struct *uc, unsigned int *regs, void* const* vals, i
|
|||||||
case UC_ARM_REG_C13_C0_3:
|
case UC_ARM_REG_C13_C0_3:
|
||||||
ARM_CPU(uc, mycpu)->env.cp15.tpidrro_el0 = *(int32_t *)value;
|
ARM_CPU(uc, mycpu)->env.cp15.tpidrro_el0 = *(int32_t *)value;
|
||||||
break;
|
break;
|
||||||
|
case UC_ARM_REG_FPSCR:
|
||||||
|
vfp_set_fpscr(&ARM_CPU(uc, mycpu)->env, *(int32_t *)value);
|
||||||
|
break;
|
||||||
case UC_ARM_REG_FPEXC:
|
case UC_ARM_REG_FPEXC:
|
||||||
ARM_CPU(uc, mycpu)->env.vfp.xregs[ARM_VFP_FPEXC] = *(int32_t *)value;
|
ARM_CPU(uc, mycpu)->env.vfp.xregs[ARM_VFP_FPEXC] = *(int32_t *)value;
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user