summaryrefslogtreecommitdiff
path: root/src/core/arm/arm_interface.h
diff options
context:
space:
mode:
authorGravatar Subv2018-07-20 19:57:45 -0500
committerGravatar Subv2018-07-20 19:57:45 -0500
commitd84eb9dac64f314adcef2c374de245012f658b1d (patch)
tree56720a5bce5d1a285dda01c16bfcb1dd57e53054 /src/core/arm/arm_interface.h
parentMerge pull request #730 from lioncash/string (diff)
downloadyuzu-d84eb9dac64f314adcef2c374de245012f658b1d.tar.gz
yuzu-d84eb9dac64f314adcef2c374de245012f658b1d.tar.xz
yuzu-d84eb9dac64f314adcef2c374de245012f658b1d.zip
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.
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:
104 104
105 virtual void SetTlsAddress(VAddr address) = 0; 105 virtual void SetTlsAddress(VAddr address) = 0;
106 106
107 virtual u64 GetTPIDR_EL0() const = 0;
108
109 virtual void SetTPIDR_EL0(u64 value) = 0;
110
107 /** 111 /**
108 * Saves the current CPU context 112 * Saves the current CPU context
109 * @param ctx Thread context to save 113 * @param ctx Thread context to save