mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 13:58:16 +00:00
unicorn_arm: Allow for read/write of UC_ARM_REG_FPSCR
This commit is contained in:
parent
fffc31e7e2
commit
9b87d0f61a
1 changed files with 6 additions and 0 deletions
|
@ -93,6 +93,9 @@ int arm_reg_read(struct uc_struct *uc, unsigned int *regs, void **vals, int coun
|
|||
case UC_ARM_REG_FPEXC:
|
||||
*(int32_t *)value = state->vfp.xregs[ARM_VFP_FPEXC];
|
||||
break;
|
||||
case UC_ARM_REG_FPSCR:
|
||||
*(int32_t *)value = vfp_get_fpscr(state);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -151,6 +154,9 @@ int arm_reg_write(struct uc_struct *uc, unsigned int *regs, void* const* vals, i
|
|||
case UC_ARM_REG_FPEXC:
|
||||
state->vfp.xregs[ARM_VFP_FPEXC] = *(int32_t *)value;
|
||||
break;
|
||||
case UC_ARM_REG_FPSCR:
|
||||
vfp_set_fpscr(state, *(uint32_t *)value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue