mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-19 03:33:56 +00:00
Implement rdtsc hook
This commit is contained in:
@@ -625,6 +625,13 @@ namespace
|
||||
emu->hook_instruction(x64_hookable_instructions::syscall, [&]
|
||||
{
|
||||
dispatcher.dispatch(*emu, context);
|
||||
return true;
|
||||
});
|
||||
|
||||
emu->hook_instruction(x64_hookable_instructions::rdtsc, [&]
|
||||
{
|
||||
puts("RDTSC Hook");
|
||||
return true;
|
||||
});
|
||||
|
||||
watch_object(*emu, context.teb);
|
||||
@@ -657,10 +664,8 @@ namespace
|
||||
|
||||
emu->reg(x64_register::rcx, execution_context.value());
|
||||
emu->reg(x64_register::rdx, context.ntdll.image_base);
|
||||
|
||||
emu->reg(x64_register::rip, entry1);
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
if (use_gdb)
|
||||
|
||||
Reference in New Issue
Block a user