Store previous IP per thread

This commit is contained in:
momo5502
2025-08-17 07:32:26 +02:00
parent b2eef2bf46
commit 584b770def
6 changed files with 22 additions and 22 deletions

View File

@@ -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);
}