aboutsummaryrefslogtreecommitdiff
path: root/src/core/arm/arm_interface.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-07-21 10:48:30 -0700
committerGitHub <noreply@github.com>2018-07-21 10:48:30 -0700
commitfe2498a65038bdea6ac5e4a2fad4fc992d4ff4ba (patch)
treee4d5cfdca67efdf79956f275f346f68292629ade /src/core/arm/arm_interface.h
parent3d938b8c602d3e9ea44fd4144fa7a6daeb1affac (diff)
parentd84eb9dac64f314adcef2c374de245012f658b1d (diff)
Merge pull request #751 from Subv/tpidr_el0
CPU: Save and restore the TPIDR_EL0 system register on every context switch
Diffstat (limited to 'src/core/arm/arm_interface.h')
-rw-r--r--src/core/arm/arm_interface.h4
1 files changed, 4 insertions, 0 deletions
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