mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-01-03 16:25:39 +00:00
aarch64: Add exception syndrome pseudo register.
This commit is contained in:
parent
ec39a51d60
commit
73f4573535
|
@ -284,6 +284,7 @@ typedef enum uc_arm64_reg {
|
|||
UC_ARM64_REG_PC, // program counter register
|
||||
|
||||
UC_ARM64_REG_CPACR_EL1,
|
||||
UC_ARM64_REG_ESR,
|
||||
|
||||
//> thread registers
|
||||
UC_ARM64_REG_TPIDR_EL0,
|
||||
|
|
|
@ -79,6 +79,9 @@ int arm64_reg_read(struct uc_struct *uc, unsigned int *regs, void **vals, int co
|
|||
case UC_ARM64_REG_CPACR_EL1:
|
||||
*(uint32_t *)value = ARM_CPU(uc, mycpu)->env.cp15.c1_coproc;
|
||||
break;
|
||||
case UC_ARM64_REG_ESR:
|
||||
*(uint32_t *)value = ARM_CPU(uc, mycpu)->env.exception.syndrome;
|
||||
break;
|
||||
case UC_ARM64_REG_TPIDR_EL0:
|
||||
*(int64_t *)value = ARM_CPU(uc, mycpu)->env.cp15.tpidr_el0;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue