A64 Interface: Allow changing processor id.

This commit allows the JIT to be used per guest thread and change it's
core when the thread is migrated.
This commit is contained in:
Fernando Sahmkow 2020-02-27 13:01:39 -04:00 committed by MerryMage
parent d86a6f2211
commit 2068658a82
3 changed files with 16 additions and 1 deletions

View file

@ -185,6 +185,11 @@ public:
jit_state.SetPstate(value);
}
void ChangeProcessorID(size_t value) {
conf.processor_id = value;
emitter.ChangeProcessorID(value);
}
void ClearExclusiveState() {
jit_state.exclusive_state = 0;
}
@ -379,6 +384,10 @@ void Jit::SetPstate(u32 value) {
impl->SetPstate(value);
}
void Jit::ChangeProcessorID(size_t new_processor) {
impl->ChangeProcessorID(new_processor);
}
void Jit::ClearExclusiveState() {
impl->ClearExclusiveState();
}