mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-23 21:51:02 +00:00
Store previous IP per thread
This commit is contained in:
@@ -420,8 +420,8 @@ void windows_emulator::on_instruction_execution(const uint64_t address)
|
||||
this->yield_thread();
|
||||
}
|
||||
|
||||
this->process.previous_ip = this->process.current_ip;
|
||||
this->process.current_ip = this->emu().read_instruction_pointer();
|
||||
thread.previous_ip = thread.current_ip;
|
||||
thread.current_ip = this->emu().read_instruction_pointer();
|
||||
|
||||
this->callbacks.on_instruction(address);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user