Skip to content

Commit 641f7a7

Browse files
committed
make gcc happy (kvm_backend.cc:1997:1: warning: control reaches end of non-void function [-Wreturn-type])
1 parent ff5a71c commit 641f7a7

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

src/wtf/kvm_backend.cc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1994,6 +1994,9 @@ uint64_t GetKvmDirtyRegsFromRegister(const Registers_t Reg) {
19941994
case Registers_t::Cr3:
19951995
return KVM_SYNC_X86_SREGS;
19961996
}
1997+
1998+
std::abort();
1999+
return 0;
19972000
}
19982001

19992002
uint64_t KvmBackend_t::SetReg(const Registers_t Reg, const uint64_t Value) {
@@ -2100,7 +2103,8 @@ uint64_t KvmBackend_t::SetReg(const Registers_t Reg, const uint64_t Value) {
21002103
}
21012104

21022105
//
2103-
// Tell KVM to flush the appropriate set of regs into the VCPU next time it runs.
2106+
// Tell KVM to flush the appropriate set of regs into the VCPU next time it
2107+
// runs.
21042108
//
21052109

21062110
Run_->kvm_dirty_regs |= GetKvmDirtyRegsFromRegister(Reg);

src/wtf/whv_backend.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <algorithm>
88
#include <fstream>
99

10-
constexpr bool WhvLoggingOn = false;
10+
constexpr bool WhvLoggingOn = true;
1111

1212
template <typename... Args_t>
1313
void WhvDebugPrint(const char *Format, const Args_t &...args) {

0 commit comments

Comments
 (0)