Try upgrading unicorn

This commit is contained in:
Maurice Heumann
2025-07-13 19:30:29 +02:00
parent 7632a77c36
commit 91375b22f9
3 changed files with 38 additions and 11 deletions

View File

@@ -451,11 +451,14 @@ void windows_emulator::setup_hooks()
const auto ticks = this->clock_->timestamp_counter();
this->emu().reg(x86_register::rax, ticks & 0xFFFFFFFF);
this->emu().reg(x86_register::rdx, (ticks >> 32) & 0xFFFFFFFF);
return instruction_hook_continuation::skip_instruction;
});
// TODO: Unicorn needs this - This should be handled in the backend
this->emu().hook_instruction(x86_hookable_instructions::invalid, [&] {
// TODO: Unify icicle & unicorn handling
dispatch_illegal_instruction_violation(this->emu(), this->process);
return instruction_hook_continuation::skip_instruction; //
});