mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-22 20:45:29 +00:00
arm: sync env.uc->thumb with env.thumb in arm_reg_write()
This commit is contained in:
parent
a59f54ca72
commit
fd39ec465b
|
@ -108,6 +108,7 @@ int arm_reg_write(struct uc_struct *uc, unsigned int *regs, void* const* vals, i
|
|||
case UC_ARM_REG_R15:
|
||||
ARM_CPU(uc, mycpu)->env.pc = (*(uint32_t *)value & ~1);
|
||||
ARM_CPU(uc, mycpu)->env.thumb = (*(uint32_t *)value & 1);
|
||||
ARM_CPU(uc, mycpu)->env.uc->thumb = (*(uint32_t *)value & 1);
|
||||
ARM_CPU(uc, mycpu)->env.regs[15] = (*(uint32_t *)value & ~1);
|
||||
// force to quit execution and flush TB
|
||||
uc->quit_request = true;
|
||||
|
|
Loading…
Reference in a new issue