diff --git a/src/wtf/backend.cc b/src/wtf/backend.cc index d955e59..bd3e971 100644 --- a/src/wtf/backend.cc +++ b/src/wtf/backend.cc @@ -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); diff --git a/src/wtf/backend.h b/src/wtf/backend.h index c003f2e..d1c6a77 100644 --- a/src/wtf/backend.h +++ b/src/wtf/backend.h @@ -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); diff --git a/src/wtf/kvm_backend.cc b/src/wtf/kvm_backend.cc index 68c269f..cb57d6d 100644 --- a/src/wtf/kvm_backend.cc +++ b/src/wtf/kvm_backend.cc @@ -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 diff --git a/src/wtf/kvm_backend.h b/src/wtf/kvm_backend.h index 2a778b8..a8430aa 100644 --- a/src/wtf/kvm_backend.h +++ b/src/wtf/kvm_backend.h @@ -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.