From d84eb9dac64f314adcef2c374de245012f658b1d Mon Sep 17 00:00:00 2001 From: Subv Date: Fri, 20 Jul 2018 19:57:45 -0500 Subject: CPU: Save and restore the TPIDR_EL0 system register on every context switch. Note that there's currently a dynarmic bug preventing this register from being written. --- src/core/arm/arm_interface.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/core/arm/arm_interface.h') diff --git a/src/core/arm/arm_interface.h b/src/core/arm/arm_interface.h index 8416e73b0..28a99defe 100644 --- a/src/core/arm/arm_interface.h +++ b/src/core/arm/arm_interface.h @@ -104,6 +104,10 @@ public: virtual void SetTlsAddress(VAddr address) = 0; + virtual u64 GetTPIDR_EL0() const = 0; + + virtual void SetTPIDR_EL0(u64 value) = 0; + /** * Saves the current CPU context * @param ctx Thread context to save -- cgit v1.2.3