Skip to content

Commit

Permalink
good?
Browse files Browse the repository at this point in the history
  • Loading branch information
0vercl0k committed May 18, 2024
1 parent 03e5940 commit 0c15506
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 10 deletions.
4 changes: 0 additions & 4 deletions src/wtf/backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -275,10 +275,6 @@ void Backend_t::TrapFlag(const bool Arm) {
Rflags(NewValue);
}

[[nodiscard]] bool Backend_t::TrapFlag() const {
return (Rflags() & RFLAGS_TRAP_FLAG_FLAG) != 0;
}

uint64_t Backend_t::Rflags() const { return GetReg(Registers_t::Rflags); }
void Backend_t::Rflags(const uint64_t Value) {
SetReg(Registers_t::Rflags, Value);
Expand Down
1 change: 0 additions & 1 deletion src/wtf/backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,6 @@ class Backend_t {
//

virtual void TrapFlag(const bool Arm);
[[nodiscard]] virtual bool TrapFlag() const;

[[nodiscard]] uint64_t Rflags() const;
void Rflags(const uint64_t Value);
Expand Down
3 changes: 0 additions & 3 deletions src/wtf/kvm_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2478,7 +2478,4 @@ void KvmBackend_t::TrapFlag(const bool Arm) {
}
}

[[nodiscard]] bool KvmBackend_t::TrapFlag() const {
return (GetReg64(WHvX64RegisterRflags) & RFLAGS_TRAP_FLAG_FLAG) != 0;
}
#endif
2 changes: 0 additions & 2 deletions src/wtf/kvm_backend.h
Original file line number Diff line number Diff line change
Expand Up @@ -415,8 +415,6 @@ class KvmBackend_t : public Backend_t {

void TrapFlag(const bool Arm) override;

[[nodiscard]] bool TrapFlag() const override;

private:
//
// Load the CPU state into the VP.
Expand Down

0 comments on commit 0c15506

Please sign in to comment.