Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/56186 )
Change subject: sim: Eliminate the now unused validKvmEnvironment function.
......................................................................
sim: Eliminate the now unused validKvmEnvironment function.
Change-Id: I199ebd0b89b8bed11ec86dc86434dd5e430b327b
---
M src/sim/system.cc
M src/sim/system.hh
2 files changed, 9 insertions(+), 21 deletions(-)
diff --git a/src/sim/system.cc b/src/sim/system.cc
index 86ba3be..be108e7 100644
--- a/src/sim/system.cc
+++ b/src/sim/system.cc
@@ -316,24 +316,6 @@
}
}
-bool
-System::validKvmEnvironment() const
-{
-#if USE_KVM
- if (threads.empty())
- return false;
-
- for (auto *tc: threads) {
- if (!dynamic_cast<BaseKvmCPU *>(tc->getCpuPtr()))
- return false;
- }
-
- return true;
-#else
- return false;
-#endif
-}
-
Addr
System::memSize() const
{
diff --git a/src/sim/system.hh b/src/sim/system.hh
index 8f09b96..de030f0 100644
--- a/src/sim/system.hh
+++ b/src/sim/system.hh
@@ -336,9 +336,6 @@
*/
KvmVM *getKvmVM() { return kvmVM; }
- /** Verify gem5 configuration will support KVM emulation */
- bool validKvmEnvironment() const;
-
/** Get a pointer to access the physical memory of the system */
memory::PhysicalMemory& getPhysMem() { return physmem; }
const memory::PhysicalMemory& getPhysMem() const { return physmem; }
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/56186
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: develop
Gerrit-Change-Id: I199ebd0b89b8bed11ec86dc86434dd5e430b327b
Gerrit-Change-Number: 56186
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list -- [email protected]
To unsubscribe send an email to [email protected]
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s