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.
This commit is contained in:
Subv 2018-07-20 19:57:45 -05:00
parent f36affdbe3
commit d84eb9dac6
8 changed files with 39 additions and 0 deletions

View file

@ -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