mirror of
https://github.com/yuzu-emu/unicorn
synced 2024-11-24 16:18:09 +00:00
arm: allow to read CPSR register
This commit is contained in:
parent
56a7b0246c
commit
142d3a6f72
1 changed files with 3 additions and 0 deletions
|
@ -51,6 +51,9 @@ int arm_reg_read(struct uc_struct *uc, unsigned int regid, void *value)
|
|||
*(int32_t *)value = ARM_CPU(uc, mycpu)->env.regs[regid - UC_ARM_REG_R0];
|
||||
else {
|
||||
switch(regid) {
|
||||
case UC_ARM_REG_CPSR:
|
||||
*(int32_t *)value = cpsr_read(&ARM_CPU(uc, mycpu)->env);
|
||||
break;
|
||||
//case UC_ARM_REG_SP:
|
||||
case UC_ARM_REG_R13:
|
||||
*(int32_t *)value = ARM_CPU(uc, mycpu)->env.regs[13];
|
||||
|
|
Loading…
Reference in a new issue