Skip to content

Commit

Permalink
ugh
Browse files Browse the repository at this point in the history
  • Loading branch information
0vercl0k committed May 18, 2024
1 parent 74c82fe commit 03e5940
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/wtf/kvm_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1369,10 +1369,7 @@ bool KvmBackend_t::OnExitDebug(struct kvm_debug_exit_arch &Debug) {

Run_->kvm_dirty_regs &= ~KVM_SYNC_X86_REGS;

if (!TrapFlag(true)) {
return false;
}

TrapFlag(true);
fmt::print(TraceFile_, "{:#x}\n", Run_->s.regs.regs.rip);
}

Expand Down Expand Up @@ -2472,7 +2469,8 @@ void KvmBackend_t::TrapFlag(const bool Arm) {
Dreg.control |= KVM_GUESTDBG_SINGLESTEP;
}

memset(&Events.interrupt, 0, sizeof(Events.interrupt));
memset(&Run_->s.regs.events.interrupt, 0,
sizeof(Run_->s.regs.events.interrupt));
Run_->kvm_dirty_regs |= KVM_SYNC_X86_EVENTS;

if (!SetDreg(Dreg)) {
Expand Down

0 comments on commit 03e5940

Please sign in to comment.