diff options
author | Subv <subv2112@gmail.com> | 2018-07-21 02:57:45 +0200 |
---|---|---|
committer | Subv <subv2112@gmail.com> | 2018-07-21 02:57:45 +0200 |
commit | d84eb9dac64f314adcef2c374de245012f658b1d (patch) | |
tree | 56720a5bce5d1a285dda01c16bfcb1dd57e53054 /src/core/arm/unicorn/arm_unicorn.cpp | |
parent | Merge pull request #730 from lioncash/string (diff) | |
download | yuzu-d84eb9dac64f314adcef2c374de245012f658b1d.tar yuzu-d84eb9dac64f314adcef2c374de245012f658b1d.tar.gz yuzu-d84eb9dac64f314adcef2c374de245012f658b1d.tar.bz2 yuzu-d84eb9dac64f314adcef2c374de245012f658b1d.tar.lz yuzu-d84eb9dac64f314adcef2c374de245012f658b1d.tar.xz yuzu-d84eb9dac64f314adcef2c374de245012f658b1d.tar.zst yuzu-d84eb9dac64f314adcef2c374de245012f658b1d.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/arm/unicorn/arm_unicorn.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/arm/unicorn/arm_unicorn.cpp b/src/core/arm/unicorn/arm_unicorn.cpp index d2d699e9b..44a46bf04 100644 --- a/src/core/arm/unicorn/arm_unicorn.cpp +++ b/src/core/arm/unicorn/arm_unicorn.cpp @@ -169,6 +169,16 @@ void ARM_Unicorn::SetTlsAddress(VAddr base) { CHECKED(uc_reg_write(uc, UC_ARM64_REG_TPIDRRO_EL0, &base)); } +u64 ARM_Unicorn::GetTPIDR_EL0() const { + u64 value{}; + CHECKED(uc_reg_read(uc, UC_ARM64_REG_TPIDR_EL0, &value)); + return value; +} + +void ARM_Unicorn::SetTPIDR_EL0(u64 value) { + CHECKED(uc_reg_write(uc, UC_ARM64_REG_TPIDR_EL0, &value)); +} + void ARM_Unicorn::Run() { if (GDBStub::IsServerEnabled()) { ExecuteInstructions(std::max(4000000, 0)); |