mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-02-26 07:46:53 +00:00
Merge pull request #14 from MerryMage/a32-fpscr
unicorn_arm: Allow for read/write of UC_ARM_REG_FPSCR
This commit is contained in:
commit
3dc1c40462
|
@ -93,6 +93,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 = state->vfp.xregs[ARM_VFP_FPEXC];
|
*(int32_t *)value = state->vfp.xregs[ARM_VFP_FPEXC];
|
||||||
break;
|
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:
|
case UC_ARM_REG_FPEXC:
|
||||||
state->vfp.xregs[ARM_VFP_FPEXC] = *(int32_t *)value;
|
state->vfp.xregs[ARM_VFP_FPEXC] = *(int32_t *)value;
|
||||||
break;
|
break;
|
||||||
|
case UC_ARM_REG_FPSCR:
|
||||||
|
vfp_set_fpscr(state, *(uint32_t *)value);
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue