A64: Add ClearExclusiveState method

This commit is contained in:
MerryMage 2018-07-04 00:03:36 +01:00
parent 2a8de5f733
commit 821cff1227
2 changed files with 11 additions and 0 deletions

View file

@ -100,6 +100,9 @@ public:
/// Modify PSTATE /// Modify PSTATE
void SetPstate(std::uint32_t value); void SetPstate(std::uint32_t value);
/// Clears exclusive state for this core.
void ClearExclusiveState();
/** /**
* Returns true if Jit::Run was called but hasn't returned yet. * Returns true if Jit::Run was called but hasn't returned yet.
* i.e.: We're in a callback. * i.e.: We're in a callback.

View file

@ -167,6 +167,10 @@ public:
jit_state.SetPstate(value); jit_state.SetPstate(value);
} }
void ClearExclusiveState() {
jit_state.exclusive_state = 0;
}
bool IsExecuting() const { bool IsExecuting() const {
return is_executing; return is_executing;
} }
@ -338,6 +342,10 @@ void Jit::SetPstate(u32 value) {
impl->SetPstate(value); impl->SetPstate(value);
} }
void Jit::ClearExclusiveState() {
impl->ClearExclusiveState();
}
bool Jit::IsExecuting() const { bool Jit::IsExecuting() const {
return impl->IsExecuting(); return impl->IsExecuting();
} }