mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-09 14:25:41 +00:00
Allow the client to write to CPSR
This commit is contained in:
parent
37bf1a9de9
commit
a63a34bfbc
|
@ -98,6 +98,9 @@ int arm_reg_write(struct uc_struct *uc, unsigned int *regs, void* const* vals, i
|
||||||
ARM_CPU(uc, mycpu)->env.vfp.regs[regid - UC_ARM_REG_D0] = *(float64 *)value;
|
ARM_CPU(uc, mycpu)->env.vfp.regs[regid - UC_ARM_REG_D0] = *(float64 *)value;
|
||||||
else {
|
else {
|
||||||
switch(regid) {
|
switch(regid) {
|
||||||
|
case UC_ARM_REG_CPSR:
|
||||||
|
cpsr_write(&ARM_CPU(uc, mycpu)->env, *(uint32_t *)value, ~0);
|
||||||
|
break;
|
||||||
//case UC_ARM_REG_SP:
|
//case UC_ARM_REG_SP:
|
||||||
case UC_ARM_REG_R13:
|
case UC_ARM_REG_R13:
|
||||||
ARM_CPU(uc, mycpu)->env.regs[13] = *(uint32_t *)value;
|
ARM_CPU(uc, mycpu)->env.regs[13] = *(uint32_t *)value;
|
||||||
|
|
Loading…
Reference in a new issue