Interface: Added Jit::Reset to reset CPU state
This commit is contained in:
parent
82f42d065f
commit
29d30bf931
2 changed files with 11 additions and 0 deletions
|
@ -123,6 +123,11 @@ void Jit::ClearCache(bool poison_memory) {
|
|||
impl->emitter.ClearCache();
|
||||
}
|
||||
|
||||
void Jit::Reset() {
|
||||
ASSERT(!is_executing);
|
||||
impl->jit_state = {};
|
||||
}
|
||||
|
||||
void Jit::HaltExecution() {
|
||||
ASSERT(is_executing);
|
||||
halt_requested = true;
|
||||
|
|
|
@ -57,6 +57,12 @@ public:
|
|||
*/
|
||||
void ClearCache(bool poison_memory = true);
|
||||
|
||||
/**
|
||||
* Reset CPU state to state at startup. Does not clear code cache.
|
||||
* Cannot be called from a callback.
|
||||
*/
|
||||
void Reset();
|
||||
|
||||
/**
|
||||
* Stops execution in Jit::Run.
|
||||
* Can only be called from a callback.
|
||||
|
|
Loading…
Reference in a new issue