mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-27 21:24:11 -04:00
kern: optimize hw-single-step management
This commit is contained in:
parent
05ea0c53d7
commit
9e7b56b33c
7 changed files with 102 additions and 125 deletions
|
@ -265,6 +265,10 @@ namespace ams::kern::arch::arm64::cpu {
|
|||
return this->GetBits(12, 1) != 0;
|
||||
}
|
||||
|
||||
constexpr ALWAYS_INLINE bool GetSoftwareStep() const {
|
||||
return this->GetBits(0, 1) != 0;
|
||||
}
|
||||
|
||||
constexpr ALWAYS_INLINE decltype(auto) SetMde(bool set) {
|
||||
this->SetBit(15, set);
|
||||
return *this;
|
||||
|
@ -274,6 +278,11 @@ namespace ams::kern::arch::arm64::cpu {
|
|||
this->SetBit(12, set);
|
||||
return *this;
|
||||
}
|
||||
|
||||
constexpr ALWAYS_INLINE decltype(auto) SetSoftwareStep(bool set) {
|
||||
this->SetBit(0, set);
|
||||
return *this;
|
||||
}
|
||||
};
|
||||
|
||||
MESOSPHERE_CPU_SYSREG_ACCESSOR_CLASS(MultiprocessorAffinity) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue