Skip to content

Commit

Permalink
Fix: drakvuf_set_vcpu_gprs forgot about RSI and RDI (#1800)
Browse files Browse the repository at this point in the history
  • Loading branch information
psrok1 authored Aug 12, 2024
1 parent 03c3d63 commit 38754de
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libdrakvuf/drakvuf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,6 +1146,8 @@ bool drakvuf_set_vcpu_gprs(drakvuf_t drakvuf, unsigned int vcpu, registers_t* re
ctx.x64.user_regs.rdx = regs->x86.rdx;
ctx.x64.user_regs.rbp = regs->x86.rbp;
ctx.x64.user_regs.rsp = regs->x86.rsp;
ctx.x64.user_regs.rsi = regs->x86.rsi;
ctx.x64.user_regs.rdi = regs->x86.rdi;
ctx.x64.user_regs.r8 = regs->x86.r8;
ctx.x64.user_regs.r9 = regs->x86.r9;
ctx.x64.user_regs.r10 = regs->x86.r10;
Expand Down

0 comments on commit 38754de

Please sign in to comment.